Commit Graph

87 Commits

Author SHA1 Message Date
Eloy Durán
59cf8054c8 Merge pull request #17826 from iRoachie/flatlist
[react-native] Additional flatlist, sectionlist props
2017-07-07 11:49:32 +02:00
Kyle
69b5070ac5 [react-native] Additional flatlist, sectionlist props 2017-07-07 00:15:02 -04:00
Dalci de Jesus Bagolin
e7db750c32 Add web as a platform
With the use of the react-native-web library, it is possible to write web applications, using react-native primitives, with this type definition, for which the PlatformOS returns 'web'

[https://github.com/necolas/react-native-web/blob/master/docs/apis/Platform.md](https://github.com/necolas/react-native-web/blob/master/docs/apis/Platform.md)
2017-07-06 15:22:41 -04:00
Ors Kovacs
a836801960 Fixing react-native TextInput style
- adding TextStyle Array to ReactNative TextInput style property
2017-07-06 09:50:31 +02:00
Ron Buckton
ab4871f427 Merge pull request #17712 from iRoachie/base
[react-native] Correct signatures for FlatList components
2017-07-04 23:52:26 -07:00
Kyle
e75065c4ff Add render function to Flatlist union 2017-07-05 00:01:22 -04:00
Jeremi Stadler
328d2c268f [React-Native] Remove me from maintainer list 2017-07-04 11:24:25 +02:00
Kyle Roach
9ab3afa064 [react-native] Add state type to React.Component generic 2017-07-03 12:02:07 -04:00
Kyle Roach
e97075f1ea [react-native] Correct signatures for Flatlist ListEmptyComponent, ListFooterComponent, ListHeaderComponent 2017-07-03 11:53:14 -04:00
Ed Bassett
acfeaa6869 Fix Easing interface, elastic should be a function
As described in the docs, `elastic` should take a value representing the bounciness of the easing function:
https://facebook.github.io/react-native/docs/easing.html
2017-07-01 15:25:52 +10:00
Eloy Durán
50b82ce053 Merge pull request #17622 from newyankeecodeshop/fix-style-type
[react-native] Support arrays in view style props.
2017-06-30 23:57:11 +02:00
paranoidjk
d370c997fa fix(react-native): typo 2017-06-30 00:36:13 +08:00
Andrew Goodale
30bacf8be5 Support arrays in style props 2017-06-29 12:04:02 -04:00
Yui T
937b1fc401 Fix linting: line exceed max length of 200 2017-06-23 10:50:13 -07:00
Kyle Roach
5193fb04bf [react-native] Added Kyle Roach to list of contributors 2017-06-23 07:56:59 -04:00
John Reilly
07352da21a Merge pull request #17288 from tkrotoff/react-default-type-arguments
Change React.Component<P, S> to React.Component<P = {}, S = {}>
2017-06-22 19:18:47 +01:00
Júlio César
90c45a404c Add missing aspectRatio property to FlexStyle
See https://facebook.github.io/react-native/releases/0.45/docs/layout-props.html#aspectratio
2017-06-21 13:17:46 -03:00
Joseph Roque
74a8cc9771 Add missing stickySectionHeadersEnabled prop 2017-06-21 00:54:16 -07:00
Tanguy Krotoff
573083a518 Replace React.Component<(any|void|\{\}|null)> by React.Component
+ many manual adjustments
2017-06-21 09:48:37 +02:00
Tanguy Krotoff
ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff
eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
Stephen Bird
202eba1a0c [react-native] Add ListEmptyComponent
added in 0.45.1
2017-06-15 15:20:16 -07:00
Jeremi Stadler
f342368cd4 [React-Native] Add dark-content as statusbar option
https://facebook.github.io/react-native/docs/statusbar.html#statusbarstyle
2017-06-08 22:24:16 +02:00
Nathan Shively-Sanders
163f4438df Fix weak type errors (#16845)
* Fix first round of weak type errors

Done through griddle-react

* 95% done with weak type fixes

* Fix last couple of weak type errors

* Remove some lint from mithril tests

* mithril's Lifecycle is not a weak type any more

Restore the Lifecycle constraints in the rest of the definitions.

* Fix react-redux tests after #16652 broke them

* Remove package-lock.json
2017-06-04 22:03:03 -07:00
Andy Hanson
a39e51dced Fix lint 2017-06-01 07:55:17 -07:00
Andy Hanson
472bd8bca8 Merge branch 'patch-1' of https://github.com/liudongpu/DefinitelyTyped into liudongpu-patch-1 2017-06-01 07:54:38 -07:00
Jonathan Torley
225bc1a2e7 Added windows as a platform
With the use of the react-native-windows library it is possible to write UWP applications, for which the PlatformOS returns 'windows'
2017-06-01 17:21:20 +10:00
Kyle Roach
5da11947ec [react-native] Added keyboardShouldPersistTaps prop to FlatList (#16818) 2017-05-31 22:10:16 -07:00
dinzo
2effdbca8c [React Native] Improved typings for FlatList and SectionList 2017-05-30 18:06:18 -04:00
Jeremi Stadler
8a8bb937ea [React-Native] Add myself to maintainers list 2017-05-29 21:50:54 +02:00
Jeremi Stadler
11e05d5948 [React-Native] Add missing props for Text & TextInput
https://facebook.github.io/react-native/docs/text.html#selectioncolor

https://facebook.github.io/react-native/docs/text.html#textbreakstrategy

https://facebook.github.io/react-native/docs/textinput.html#spellcheck
2017-05-29 15:29:41 +02:00
Jeremi Stadler
c350fb666d [React-Native] Add global ErrorUtils & __BUNDLE_START_TIME__
Source:
https://github.com/facebook/react-native/blob/master/packager/src/Resolver/polyfills/error-guard.js
https://github.com/facebook/react-native/blob/master/packager/src/Resolver/polyfills/prelude.js
2017-05-29 11:43:14 +02:00
Fedor Nezhivoi
96d0e4a113 @types/react-native update Slider props 2017-05-23 09:41:01 +03:00
huhuanming
5dfa23810d Add removeClippedSubviews To SectionList & FlatList 2017-05-18 23:29:42 +08:00
huhuanming
621cf88db5 Add testID To TouchableWithoutFeedbackProperties 2017-05-17 11:23:28 +08:00
qlyan(benben)
1e648a4bd2 add optional args for AlertIOSButton interface 2017-05-15 12:46:34 +08:00
Eloy Durán
8868f90acf Merge pull request #16423 from asakasa/add-types-for-react-native
Add new types for TabBar in types/react-native
2017-05-10 08:23:51 +02:00
Eloy Durán
6c85d19598 Merge pull request #16418 from jasonhealy/patch/update-scrollview-proptypes
[react-native] Change ScrollView's snapToInterval prop from array to number
2017-05-10 08:21:06 +02:00
asakasa
bf2499f1d2
Update version of React Native
Now current version of React Native is 0.44
2017-05-10 03:16:59 +09:00
asakasa
a6e481c4bc
Add new types for TabBar in react-native
The types are available since iOS 10.
And then test for TabBar added.
2017-05-10 03:05:42 +09:00
Jason Healy
eab9a9239c change snapToInterval prop from array to number 2017-05-09 16:35:13 +01:00
David Xiao
0307072de4 React-native: export ImageURISource
Useful for passing around the struct before giving to to the \<Image> component.
2017-05-06 15:44:55 -07:00
yuche
221fdba61b add extraData prop to FlatList and SectionList (#16338)
* add `extraData` prop to FlatList and SectionList

see:
https://facebook.github.io/react-native/docs/sectionlist.html#props
https://facebook.github.io/react-native/docs/flatlist.html#props

* remove extra space
2017-05-05 10:11:00 -07:00
Jason Healy
8e1e46db87 Adding 'setLayoutAnimationEnabledExperimental' flag to UIManagerStatic for Android LayoutAnimation (#16317) 2017-05-04 16:01:06 -07:00
Mohamed Hegazy
ff4eaf5d61 Fix lint errors introduced in tslint@5.2 (#16330) 2017-05-04 15:48:57 -07:00
Kyle Roach
74818a2559 [react-native] Added BackHandler component (#16302) 2017-05-03 12:07:12 -07:00
Daniel Rosenwasser
550cf1fbea Removed inheritance from React.Props (which is deprecated) as well as explicit ref properties.
TypeScript already includes `ref` properties when necessary through the use of
`JSX.IntrinsicClassAttributes` (which is more or less just an alias of `React.ClassAttributes<T>`
inside of React's declaration files).

Our understanding is that having these declarations caused problems in assignability in
scenarios where the 'ref' key in props were not assignable in odd ways.
2017-05-02 17:24:25 -07:00
liudongpu
488ab0050d emit ...param:any[] 2017-05-02 22:25:32 +08:00
Nick Redmond
4e34161855 react-native: PermissionsAndroid should have requestMultiple method 2017-04-28 09:50:30 -07:00
Eloy Durán
a7e9769870 Merge pull request #15958 from systemride/getInitialNotification
react-native: PushNotificationIOS.getInitialNotification should return a Promise
2017-04-20 20:51:23 +02:00