Commit Graph

239 Commits

Author SHA1 Message Date
Bruno Lemos
745b78c0b2 [react-native] Add locale prop on DatePickerIOS (#23080) 2018-01-23 10:30:47 -08:00
Eloy Durán
4174f17298
Merge pull request #23078 from brunolemos/patch-2
[react-native] Support space-evenly option on justifyContent style
2018-01-20 19:25:26 -05:00
Bruno Lemos
49ab9fc0db
[react-native] Improve DatePickerIOS minuteInterval typing 2018-01-20 16:11:24 -02:00
Bruno Lemos
90c7b09a6d
[react-native] Support space-evenly option on justifyContent style
- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [ ] Test the change in your own code. (Compile and run.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
<!--- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).-->

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/facebook/react-native/commit/1050e0b
2018-01-20 15:41:19 -02:00
foxmicha
38d5845a1e
Update React-Native Modal prop typings
Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/facebook/react-native/blob/master/Libraries/Modal/Modal.js#L161


Additional info:
Just like the onShow optional prop, the Modal's onOrientationChange prop can capture a NativeSyntheticEvent at the time of the hardware change. This allows the developer to determine if the orientation change was to the landscape or portrait style and react accordingly.
2018-01-16 09:32:07 -05:00
Tim Wang
b9c5d01caa
[react-native] Bump version 2018-01-12 16:32:31 +08:00
Kamal Fariz Mahyuddin
1257e0e883 AppState currentState should use AppStateStatus (#22818) 2018-01-10 19:45:59 -08:00
Alec Winograd
94ca94802d
[react-native] Add onDismiss prop to Modal 2018-01-03 11:33:58 +01:00
Sergei Butko
9c99ff65b2 Added border radii properties into ImageProperties for react-native (#22497)
* Added border radii properties into ImageProperties for react-native

* Remove trailing white spaces

* Remove more trailing whitespaces
2018-01-02 23:53:30 -08:00
Krystof Celba
a50d608c1b react-native: fix Dimensions event handler type 2017-12-24 02:07:57 +01:00
El Youssoufi Naoufal
85d5b85df0 Fixing lint 2017-12-21 23:50:25 +00:00
El Youssoufi Naoufal
9a204103db Fixing lint 2017-12-21 23:45:12 +00:00
El Youssoufi Naoufal
2690b9c7c8 react-native: adding visible-password keyboardType 2017-12-21 23:15:30 +00:00
Berke Ediz Demiralp
2f9d9fad25 This commit is replacing ScrollViewProperties with VirtualizedListProperties to conform the specification in the documentation.
SectionList documentation for React Native v0.51 (https://facebook.github.io/react-native/docs/0.51/sectionlist.html) states that SectionList inherits VirtualizedList's props. In contrary to documentation SectionListProperties have been extending ScrollViewProperties.
2017-12-20 15:00:22 -05:00
Eloy Durán
57c75d8b4d
Merge pull request #22226 from KevinVlaanderen/react-native-accessibilitylabel-testid
[react-native] Add accessibilityLabel and testID on TextProperties and ButtonProperties
2017-12-19 12:36:28 +01:00
Kevin Vlaanderen
13cd162764 Extract accessibility properties into their own interfaces; Add missing accessibility properties where applicable 2017-12-19 09:38:21 +01:00
Kevin Vlaanderen
c5acac0ec4 Add accessibilityLabel and testID on ButtonProperties and ViewProperties 2017-12-15 15:50:50 +01:00
Damir
3015b40ec8
Fix react-native FlatList scrollToItem method signature 2017-12-14 12:36:30 +01:00
foxmicha
52e3641860
Cleanup react-native Typings white space 2017-12-11 15:57:28 -05:00
foxmicha
73ae35f48f
Update react-native PushNotificationIOS Typings
React-Native typings are currently missing two crucial definitions when implementing iOS notifications: finish function and FetchResult strings. If a finish function is not called, the background remote notifications could be throttled.

Sources:
https://facebook.github.io/react-native/docs/pushnotificationios.html#finish
https://github.com/facebook/react-native/blob/master/Libraries/PushNotificationIOS/PushNotificationIOS.js#L133
https://github.com/facebook/react-native/blob/master/Libraries/PushNotificationIOS/PushNotificationIOS.js#L454
2017-12-11 15:48:12 -05:00
Bruno Lemos
3b46d867fe
[react-native] Support default option on Platform.select
It was introduced on react native v0.43 f30ab35e92
2017-12-10 19:16:42 -02:00
huhuanming
f6502535c4 add fetchbundle 2017-12-07 11:33:03 +08:00
Urtaq
d35d7d3acd [@types/react-native] add ''contentInsetAdjustmentBehavior" to the ScrollViewPropertiesIOS. 2017-12-05 10:32:39 +09:00
Eloy Durán
368972eb26
[react-native] Reformat all files using prettier.
prettier --parser typescript --tab-width 4 --semi --trailing-comma es5 \
             --write --print-width 120 \
             types/react-native{,/test}/*.ts*
2017-11-15 14:52:03 +01:00
Eloy Durán
84197d2a64
Merge pull request #21495 from Fitzpasd/react_native_accessibility_info
react-native: Add AccessibilityInfo API
2017-11-14 23:42:12 +01:00
Shane Fitzpatrick
fd5911ba42 Replace 'Function' with '() => void' 2017-11-14 14:02:15 -08:00
Eloy Durán
8fe3a6bcec
Merge pull request #21499 from Thorbenandresen/fix/sectionListItemSeparator
Change typing of ItemSeparatorComponent to React.ComponentType for SectionListProperties
2017-11-14 17:50:04 +01:00
THORBEN ANDRESEN
c149a3f9aa remove redundant union type for ItemSeparatorComponent 2017-11-14 11:33:09 -05:00
Eloy Durán
8ca6a6e423
Merge pull request #21221 from Yiiu/patch-1
[react-native]fix raw event arg ignored error in 'index.d.ts'.
2017-11-14 08:48:09 +01:00
Yu
7d214ff133
change to argMapping 2017-11-13 22:35:09 -06:00
Shane Fitzpatrick
6dcc3a21e6 PR feedback 2017-11-13 15:48:49 -08:00
Shane Fitzpatrick
e0eda64a9c Remove trailing whitespace 2017-11-13 15:45:50 -08:00
THORBEN ANDRESEN
887171518e Change typing to React.ComponentType for SectionListProperties 2017-11-13 18:28:56 -05:00
Shane Fitzpatrick
f901af9947 react-native: Add AccessibilityInfo API 2017-11-13 14:40:50 -08:00
Shane Fitzpatrick
92db6df0e8 react-native: Adding missing GeoLocation function: setRNConfiguration 2017-11-13 14:12:32 -08:00
Andrew Goodale
90532bc5a5 Return type of onStartShouldSetPanRespnder should be boolean 2017-11-06 15:57:47 -05:00
Tim Wang
0903b17fb0
Fix docs comments 2017-11-05 21:04:24 -06:00
Tim Wang
0ff602e5b8
Remove deprecated warning from interface name. 2017-11-05 21:03:14 -06:00
Tim Wang
e6a22d9c00 Fix linter issue 2017-11-04 22:01:22 +08:00
Tim Wang
972f126ed0 Fix NetInfo module type 2017-11-04 21:40:01 +08:00
Yu
79325cc167
[react-native]fix raw event arg ignored error 2017-11-03 16:58:44 +08:00
Steffen Matthischke
0a394777ed [react-native] bump version to 0.50 2017-11-02 23:25:13 +01:00
Steffen Matthischke
ef34bdbd8e [react-native] add SafeAreaView 2017-11-02 23:08:06 +01:00
Sverre Johansen
54c6d449f2 Added missing getItemLayout prop to SectionList 2017-10-27 11:23:19 +02:00
Shane Fitzpatrick
57989134a3 react-native: Adding the fadeDuration property to ImagePropertiesAndroid (#21029) 2017-10-26 11:25:34 -07:00
Andy
403dbdabc7 react-native: More no-redundant-jsdoc fixes (#20931) 2017-10-23 14:45:51 -07:00
Andrew Goodale
2cb730ef15 Merge branch 'master' into remove-nav 2017-10-23 14:50:27 -04:00
Andrew Goodale
343099bb28 Remove Navigator and NavigationExperimental since they are not in RN >=0.44 2017-10-23 14:18:40 -04:00
huhuanming
9bf8e4caf8 Enhance ItemSeparatorComponent (#20807) 2017-10-23 07:56:19 -07:00
Andy
72bc73d061 react-*: Fix lint (#20825) 2017-10-23 07:31:51 -07:00