Donald Hruska
9c60961534
Remove extraneous character in react-native types
...
Remove extraneous `}` in `FlatList` `renderItem` definition
2018-05-03 15:56:05 -05:00
Kyle Roach
884979debd
[react-native] ScrollView - make scrollToLocation method ( #25505 )
2018-05-03 08:50:27 -07:00
Andrew Goodale
7c9875bc02
Add missing fetch types compatible with TS 2.6+ ( #25255 )
2018-04-30 09:15:36 -07:00
Tanguy Krotoff
8ecd62b94a
Fix react-native ( #25362 )
...
* Fix DatePickerIOS
* Fix StatusBar: methods are static
* Fix Slider
* Switch to static methods when needed
* Fix Expo ViewProps vs ViewProperties
2018-04-27 09:30:59 -07:00
Tanguy Krotoff
4abbfb42ff
[react-native] Switch to *real* components + rename Properties to Props ( #25307 )
...
* Switch from var to const
* import React instead of /// <reference types="react" />
* Fix TextInput and remove TextInputStatic
See #16318 [react-native] Wrong type for component ref
* Remove TextStatic
* Remove ActivityIndicatorStatic
* Remove ActivityIndicatorIOSStatic
* Remove DatePickerIOSStatic
* Remove DrawerLayoutAndroidStatic
* Remove ImageStatic
* Remove ImageBackgroundStatic
* Remove InputAccessoryViewStatic
* Remove ListViewStatic
* Remove MapViewStatic
* Remove MaskedViewStatic
* Remove ModalStatic
* Remove NavigatorIOSStatic
* Remove PickerStatic
* Remove PickerIOSStatic
* Remove ProgressBarAndroidStatic
* Remove ProgressViewIOSStatic
* Remove RefreshControlStatic
* Remove RecyclerViewBackedScrollViewStatic
* Remove SafeAreaViewStatic
* Remove SegmentedControlIOSStatic
* Remove SliderStatic
* Remove StatusBarStatic
* Remove ScrollViewStatic
* Remove SnapshotViewIOSStatic
* Remove SwipeableListViewStatic
* Remove SwitchStatic
* Remove SwitchIOSStatic
* Remove TabBarIOSStatic
* Remove ToolbarAndroidStatic
* Remove TouchableHighlightStatic
* Remove TouchableNativeFeedbackStatic
* Remove TouchableOpacityStatic
* Remove TouchableWithoutFeedbackStatic
* Remove ViewStatic
* Remove ViewPagerAndroidStatic
* Remove WebViewStatic
* Remove ButtonStatic
* Remove ClippingRectangleStatic, GroupStatic, ShapeStatic, SurfaceStatic, ARTTextStatic, ARTTextStatic
* Remove KeyboardAvoidingViewStatic
* Remove FlatListStatic
* Rename TextProperties and friends to *Props
* Rename TextInputProperties and friends to *Props
* Rename WebViewProperties and friends to *Props
* Rename *Properties to *Props
* Rename ScrollViewProperties and friends to *Props
* Improve DatePickerAndroid.open()
* Rename ImagePropertiesSourceOptions to ImageSourcePropType
* Rename MaskedViewProps to MaskedViewIOSProps
* Rename PointProperties to PointPropType
* Rename TabBarItem to TabBarIOSItem
* Remove internal *Properties
* ImagePropertiesSourceOptions => ImagePropsSourceOptions
* Merge fail: react-native-linear-gradient has been removed
* Rename ImageProperties to ImageProps
* Update authors list
* Remove ImagePropsSourceOptions
* Move *Properties redirections to legacy-properties.d.ts
2018-04-26 10:30:30 -07:00
Bruno Lemos
fdb2c25846
[react-native] Support Layout Props ( #25083 )
...
Support some styles as View and Image props, e.g. <View flex={1} />
2018-04-24 18:34:33 -07:00
Tanguy Krotoff
b273310927
react-native: small improvements ( #25057 )
...
* Switch from var to const
* import React instead of /// <reference types="react" />
2018-04-24 17:00:51 -07:00
ufolux
53b8794401
Update index.d.ts ( #25194 )
2018-04-24 15:59:13 -07:00
ufolux
23ff949115
export NativeSyntheticEvent ( #25190 )
...
Due to WebView onMessage function need a event param
2018-04-24 15:58:52 -07:00
Bruno Lemos
a8de5cf374
[react-native] Add missing layout props ( #25081 )
...
borderEndWidth, borderStartWidth, display, end, marginEnd, marginStart, paddingEnd, paddingStart, start
https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/LayoutPropTypes.js
2018-04-18 11:25:23 -07:00
Kyle Roach
e460cfa0a3
(react-native) Adds SectionList scrollToLocation ( #25050 )
2018-04-17 08:35:25 -07:00
Nico Montanari
9968b18f5b
Remove trailing spaces
2018-04-13 11:02:52 +02:00
Nico Montanari
45ff24159b
Added listKey prop to VirtualizedListProperties
2018-04-12 17:34:21 +02:00
RalfNieuwenhuizen
8f457e08d0
Callback function typings for PushNotificationIOS ( #24867 )
...
* Callback function typings for PushNotificationIOS
Allow the different kind of callback functions for different events in the `PushNotificationIOS` class, according to the specification in https://facebook.github.io/react-native/docs/pushnotificationios.html#addeventlistener
* Remove trailing spaces
* Fix line length
2018-04-10 10:15:04 -07:00
Vincent Langlet
dc5668557c
Avoid error with XMLHttpRequest = originalXMLHttpRequest || XMLHttpRequest
2018-04-10 12:14:55 +02:00
Eric Kirkham
57238f66d8
add default value
2018-04-09 16:40:08 -07:00
Eric Kirkham
fd5d770d39
add caretHidden to TextInputProperties
2018-04-09 16:14:33 -07:00
Vincent Langlet
15db8183d9
[React-native] Fix type for Stylesheet.flatten ( #24772 )
...
* Use generic type for Stylesheet.flatten
* Keep using overload, but fix it by changing order of definition
* Adding tests
2018-04-09 14:01:27 -07:00
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