Commit Graph

273 Commits

Author SHA1 Message Date
Tommy Nguyen
4e707e3844 Revert "[react-native] Replacing ScrollViewProperties with VirtualizedListProperties for SectionList" (#24033) 2018-04-09 13:22:03 -07:00
Manuel Alabor
0df701c2d6 Add InputAccessoryView to react-native Typing (#24837)
Adds typing for react-natives InputAccessoryView component.
2018-04-09 10:53:42 -07:00
Michele Bombardi
bf68326d76 Added react-native AppRegistry registerHeadlessTask typing (#24806)
* react-native: AppRegistry registerHeadlessTask

* Definitions by header

* Task, TaskProvider and registerHeadlessTask task param type
2018-04-09 10:45:37 -07:00
RalfNieuwenhuizen
cac060e936
ListHeaderComponent can also be a rendered element 2018-04-06 09:06:43 +02:00
Alex Dunne
f802a441b4 [react-native] Added platform indicator to presentationStyle prop 2018-04-03 13:59:40 +01:00
Alex Dunne
3c4e58a288 [react-native] Added missing presentationStyle to the Modal 2018-04-03 13:20:18 +01:00
Andrew Goodale
1ed52bceab Fix declaration of onMoveShouldSetResponderCapture 2018-03-30 11:10:33 -04:00
Jack Leigh
95deea0a8f react-native: Export some useful union types 2018-03-29 11:10:47 +01:00
Alex Dunne
6749042670 [react-native] Added missing ReactART types 2018-03-27 14:47:42 +01:00
Mine Starks
171d330084
Merge pull request #24386 from svbutko/patch-1
Added tintColor into React-Native's ActionSheetIOSOptions
2018-03-20 16:32:05 -07:00
Yousef El-Dardiry
79c3fcfe44 add test for backhandler 2018-03-19 19:35:02 +01:00
Sergei Butko
7c1a34a760
Added tintColor into ActionSheetIOSOptions 2018-03-19 20:08:37 +02:00
Yousef
81ca7edca2
BackHandlerStatic returns NativeEventSubscription 2018-03-19 10:54:47 +01:00
Jack Leigh
23d02a78fb react-native: Correct onKeyPress type
See https://facebook.github.io/react-native/docs/0.53/textinput.html#onkeypress
This has been the case since 0.41 at least.
2018-03-14 12:05:47 +00:00
Kevin Perrine
3a4a00ee55
Update Easing.poly definition to accept number 2018-03-12 14:47:02 -05:00
Ben Wildeman
1e82b25e3e
[react-native] updated viewOffset on FlatList to be optional
although the react-native docs says that viewOffset is required, the flow types of the flatlist, and the code for the flatlist shows that this is actually optional and defaults to 0 when not used.
2018-03-02 10:20:28 +00:00
Ken Lim
258aaf6d62 [react-native] Add injectJavaScript method to WebView 2018-02-28 10:19:46 +08:00
Tim Wang
5c6737cfc5 [react-native] Add YellowBox API 2018-02-27 15:51:36 +08:00
Andrew Goodale
38c8148560 Add onScrollToIndexFailed prop for VirtualizedList 2018-02-20 13:19:34 -05:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
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