Commit Graph

253 Commits

Author SHA1 Message Date
Sarah Scott
92cd43dff0 [react-native] updated scrollToIndex method of FlatList 2018-02-14 16:17:10 +01:00
Eloy Durán
19675471ec
Merge pull request #23641 from danilobuerger/patch-4
[react-native] Exported ViewPropTypes
2018-02-14 08:53:41 -05:00
Danilo Bürger
990cc00ae7
[react-native] Exported ViewPropTypes 2018-02-14 12:40:44 +01:00
Eloy Durán
255c100f8f
Merge pull request #23616 from danilobuerger/patch-3
[react-native] Platform.Version can be a string
2018-02-13 15:01:19 -05:00
Danilo Bürger
27be6ce35b
[react-native] Platform.Version can be a string 2018-02-13 20:16:02 +01:00
Shane Fitzpatrick
77994ea403 Add types for accessibility event handler parameters 2018-02-12 11:39:44 -08:00
Forbes Lindesay
8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Manuel Thomsen
2abac61fd0
[React Native] Update AnimatedValue type 2018-02-02 17:06:58 +01:00
Samuel Edwin
73e70076ff Add justify option to TextStyle 2018-01-31 23:50:38 +07:00
Kyle Roach
15c9a4af74 Change MaskedView to MaskedViewIOS 2018-01-29 05:14:07 -04:00
Donkey-Kurt
f6099e4f98
fix trailing whitespace
fix trailing whitespace
2018-01-24 11:05:58 +08:00
Donkey-Kurt
3154b51d76
add missing props for android webview
adding    mixedContentMode?: "never" | "always" | "compatibility";

http://facebook.github.io/react-native/docs/webview.html#mixedcontentmode
2018-01-24 10:47:40 +08:00
Ali Sabil
e935d060d4 react-native: Add stiffness/mass/damping to SpringAnimationConfig (#23035) 2018-01-23 15:06:20 -08:00
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