Alexader
0f029030bd
Wrap events to NativeSyntheticEvent
2018-06-16 22:12:39 +03:00
Eloy Durán
10fe633823
Merge pull request #26585 from newyankeecodeshop/rn-fix-text-input-state
...
[react-native] Fix `TextInput.State` and SectionList prop `onScrollToIndexFailed`
2018-06-16 12:10:48 +02:00
Andrew Goodale
05d33b6d77
SectionList missing onScrollToIndexFailed prop
2018-06-15 13:04:24 -04:00
Andrew Goodale
b079af2730
TextInput.State is a static value
2018-06-15 12:51:09 -04:00
Alexaner T
d67617c5bb
Change Image onLoad event data
2018-06-15 10:32:18 +03:00
Alexaner T
3653895fcd
Add onScroll event to TextInput
2018-06-14 14:54:13 +03:00
Alexaner T
446da95f1c
add missed props to synthetic event
2018-06-12 13:19:12 +03:00
Shane Fitzpatrick
028d2422e9
Adding a test
2018-06-09 08:21:28 -07:00
Shane Fitzpatrick
e02a423e30
react-native: Add event for TextInput onFocus and onBlur
2018-06-05 09:50:28 -07:00
Joey Jan
c0934c470f
react-native: add getRunnable method to AppRegistry ( #26213 )
...
* add getRunnable method to AppRegistry
* Update index.d.ts
2018-06-04 08:01:56 -07:00
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án
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án
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án
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 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