Commit Graph
312 Commits
Author SHA1 Message Date
Matt Etre 66319cc782 revert ts version 2018-05-24 10:04:38 +01:00
Matt Etre 5e89b5e726 bump typescript version 2018-05-24 09:43:49 +01:00
Matt Etre ce6036ed64 fix react-native image static methods 2018-05-24 09:33:10 +01:00
Eloy DuránandGitHub 4393935ba7 Merge pull request #25888 from VincentLanglet/layoutProps
[@types/react-native] Remove layoutProperties
2018-05-21 12:35:13 +02:00
Vincent Langlet 8dbab0928b Remove layoutProps 2018-05-19 14:22:25 +02:00
Eloy DuránandGitHub c0fe97a75b Merge pull request #25737 from VincentLanglet/react-native/fetch
[react-native] Add missing GlobalFetch / RequestInfo definitions
2018-05-16 15:41:07 +02:00
Eloy DuránandGitHub 23f52199a3 Merge pull request #25735 from brunolemos/view-style-props
[react-native] Add missing style props to View
2018-05-16 15:38:50 +02:00
Tommy Nguyen 63fb6fdcb4 fixup! [react-native] Add declarations for MessageQueue and BatchedBridge. 2018-05-16 13:21:57 +02:00
Bruno Lemos cf5dd197b3 [react-native] [Image] Disable broken props: width, height and tintColor 2018-05-16 04:03:08 -03:00
Bruno Lemos ddac6e2625 [react-native] Add tests for ImageStyle and ViewStyle as props 2018-05-16 04:02:57 -03:00
Bruno Lemos d12e4ba256 [react-native] Image props should extend ImageStyle intead of ViewStyle 2018-05-16 01:30:49 -03:00
Tommy Nguyen 9ea396d9d6 [react-native] Add declarations for MessageQueue and BatchedBridge. 2018-05-15 21:33:57 +02:00
Vincent Langlet c20e3f91b0 Improve tests 2018-05-15 15:57:16 +02:00
Vincent Langlet 8b7bccf8a1 Add tests 2018-05-15 00:09:29 +02:00
Armands Baurovskis ae6cbcf392 = SectionList missing methods 2018-05-14 17:04:46 +03:00
Vincent Langlet a72c995906 Add GlobalFetch / RequestInfo definitions 2018-05-13 01:05:59 +02:00
Bruno Lemos 3d7e710e5f [react-native] Make View overflow support scroll value 2018-05-12 17:37:19 -03:00
Bruno Lemos 8cc6c8d931 [react-native] Make ViewProps extends ViewStyle
https://github.com/facebook/react-native/blob/master/Libraries/Components/View/ViewStylePropTypes.js
2018-05-12 16:45:49 -03:00
Bruno Lemos 96f741e68e [react-native] Add missing fields on ViewStyle 2018-05-12 16:45:46 -03:00
Justin Stanley ec90482869 Moved allowFontScaling from TextPropsIOS to TextProps
- `allowFontScaling` is not an iOS-only prop on Text.
-  also removed the link to `allowFontScaling` for TextInput as there’s already a link to the TextInput docs above the interface declaration.
2018-05-12 12:29:56 -05:00
Justin Stanley f85390fff4 Added allowFontScaling prop to TextInputProps 2018-05-12 12:20:39 -05:00
Donald HruskaandGitHub 9c60961534 Remove extraneous character in react-native types
Remove extraneous `}` in `FlatList` `renderItem` definition
2018-05-03 15:56:05 -05:00
Kyle RoachandAndy 884979debd [react-native] ScrollView - make scrollToLocation method (#25505) 2018-05-03 08:50:27 -07:00
Andrew GoodaleandAndy 7c9875bc02 Add missing fetch types compatible with TS 2.6+ (#25255) 2018-04-30 09:15:36 -07:00
Tanguy KrotoffandWesley Wigham 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 KrotoffandWesley Wigham 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 LemosandWesley Wigham 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 KrotoffandWesley Wigham 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
ufoluxandWesley Wigham 53b8794401 Update index.d.ts (#25194) 2018-04-24 15:59:13 -07:00
ufoluxandWesley Wigham 23ff949115 export NativeSyntheticEvent (#25190)
Due to WebView onMessage function need a event param
2018-04-24 15:58:52 -07:00
Bruno LemosandRyan Cavanaugh 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 RoachandRyan Cavanaugh e460cfa0a3 (react-native) Adds SectionList scrollToLocation (#25050) 2018-04-17 08:35:25 -07:00
Nico MontanariandGitHub 9968b18f5b Remove trailing spaces 2018-04-13 11:02:52 +02:00
Nico MontanariandGitHub 45ff24159b Added listKey prop to VirtualizedListProperties 2018-04-12 17:34:21 +02:00
RalfNieuwenhuizenandMohamed Hegazy 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 LangletandMohamed Hegazy 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 NguyenandMohamed Hegazy 4e707e3844 Revert "[react-native] Replacing ScrollViewProperties with VirtualizedListProperties for SectionList" (#24033) 2018-04-09 13:22:03 -07:00
Manuel AlaborandMohamed Hegazy 0df701c2d6 Add InputAccessoryView to react-native Typing (#24837)
Adds typing for react-natives InputAccessoryView component.
2018-04-09 10:53:42 -07:00
Michele BombardiandMohamed Hegazy 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
RalfNieuwenhuizenandGitHub 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 StarksandGitHub 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