Commit Graph

75 Commits

Author SHA1 Message Date
paranoidjk
d370c997fa fix(react-native): typo 2017-06-30 00:36:13 +08: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
Eloy Durán
56d0d226da Merge pull request #15877 from systemride/master
react-native: Add mode property to DatePickerAndroid options
2017-04-20 20:49:59 +02:00
Nick Redmond
814efe633e react-native: PushNotificationIOS.getInitialNotification should return a Promise 2017-04-20 11:35:26 -07:00
Nick Redmond
7bdbb4cdc8 react-native: Update PermissionsAndroid types 2017-04-20 11:28:29 -07:00
Eloy Durán
85596fb3b7 Merge pull request #16026 from newyankeecodeshop/section-list
@types/react-native add SectionList component
2017-04-20 17:50:22 +02:00
Andrew Goodale
f48da02f41 Re-order optional props to match documentation 2017-04-20 11:31:44 -04:00
Andrew Goodale
ac241b3645 Fix lint failure 2017-04-20 11:21:21 -04:00
Andrew Goodale
ca056c85c5 Type definition for SectionList 2017-04-20 09:58:42 -04:00
Kyle Roach
ab4ff7f937 Moved method scrollToEnd to correct interface (#15955)
Moved scrollToEnd from RecyclerViewBackedScrollViewStatic to ScrollViewStatic
2017-04-18 10:52:16 -07:00
Eloy Durán
33660a723a [react-native] Try to fix the mention bot.
See e.g. https://github.com/DefinitelyTyped/DefinitelyTyped/pull/15817#issuecomment-293604762
2017-04-18 16:13:07 +02:00
Ryan Cavanaugh
a8b9ba579b Merge pull request #15817 from MNBuyskih/master
Fix linter errors for react-native FlatList declarations
2017-04-17 14:03:01 -07:00
Ryan Cavanaugh
d456cac7b6 Merge pull request #15818 from iRoachie/patch-1
react-native: Added scrollToEnd method on ScrollView
2017-04-17 12:59:29 -07:00
Nick Redmond
f562cd07a9 react-native: Add mode property to DatePickerAndroid options 2017-04-14 14:49:45 -07:00