Commit Graph

95 Commits

Author SHA1 Message Date
Thomas Sawkins
a62969017a add missing initalRouteKey property on NavigationStackRouterConfig (#25590) 2018-05-08 10:14:13 -07:00
yamiscott
a2a2edb657 Fixed SwitchNavigatorConfig interface to use the correct backBehavior value for initialRoute. And added a test to cover this. (#25533) 2018-05-04 15:53:47 -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
Vincent Langlet
e81f217c01 Add NavigationContainerComponent (#25270) 2018-04-25 11:55:08 -07:00
Edward Sammut Alessi
3b33d22565 React-navigation onTransition event pass props (#25121)
* React-navigation onTransition prop passing

* Only transition start takes a promise
2018-04-19 11:09:13 -07:00
doomsower
a9e8ad80f9 [react-navigation] Loosen navigator navigationOptions (#24943)
* Loosen navigator navigationOptions

* Fix linter
2018-04-17 09:57:43 -07:00
jemmyphan
1f18ca2c55 [react-navigation] update transitionConfig (transitionConfig accept 3 params) 2018-04-05 10:18:43 +07:00
Paul van Brenk
24899c6a70 Merge pull request #24662 from brunolemos/patch-9
[react-navigation] Add SafeAreaView export
2018-04-03 11:26:20 -07:00
Paul van Brenk
75963dd77b Merge pull request #24661 from brunolemos/patch-5
[react-navigation] Add indicatorStyle to TabBarTopProps
2018-04-03 11:22:08 -07:00
Bruno Lemos
90685eb26a [react-navigation] Add indicatorStyle to TabBarTopProps
https://reactnavigation.org/docs/tab-navigator.html#tabbaroptions-for-tabbartop-default-tab-bar-on-android
2018-04-01 08:40:33 -03:00
Bruno Lemos
6ab9f281fd [react-navigation] Add SafeAreaView export 2018-03-31 23:48:35 -03:00
Jordan Miller
d5ece63fb1 [react-navigation] Add optional key property to NavigationNavigateActionPayload 2018-03-30 16:34:17 -04:00
doomsower
5575ff4dc1 Fix whitespaces 2018-03-30 11:34:29 +03:00
doomsower
7c35bcd422 Stronger params for screen 2018-03-30 11:18:04 +03:00
doomsower
a98b0c457b Merge upstream 2018-03-29 12:22:47 +03:00
Tim Wang
40f7502a23 Fix linter issues 2018-03-26 10:50:07 +08:00
Tim Wang
ebf695c819 Remove any union type 2018-03-26 10:41:58 +08:00
doomsower
f2b858e68f Some changes to react-navigation 2018-03-23 16:49:30 +03:00
Tim Wang
8731027ec5 Fix CI 2018-03-23 13:29:00 +08:00
Tim Wang
d6c651c1b3 Add back params generic and remove remain action generic. Add support for stateless screen. 2018-03-23 13:16:51 +08:00
ArmandoAssuncao
7d4ae0d764 Merge branch 'master' into react-navigation-navigate-params 2018-03-15 18:26:19 -03:00
Arthur Ozga
3d551c9a22 Merge pull request #24189 from arnibarnason/react-navigation-navigate-fix
[react-navigation]: Overloaded navigate function with new parameters
2018-03-15 12:38:36 -07:00
Arthur Ozga
fcd5dee4f8 Merge pull request #24177 from arnibarnason/master
[react-navigation]: Adding pop and popToTop to NavigationActions
2018-03-15 12:37:05 -07:00
Arthur Ozga
6c2335f31b Merge pull request #24214 from abrahambotros/react-navigation/remove-contributor
[react-navigation] Remove self (abrahambotros) from contributor list
2018-03-15 12:30:45 -07:00
Arthur Ozga
9a07085198 Merge pull request #24232 from aitemr/master
fix(react-navigation): add iconStyle
2018-03-15 12:26:27 -07:00
cliedeman
b58703728a Added types for switch navigator 2018-03-14 15:42:43 +02:00
Islam Temirbek
705de9c4e5 fix(react-navigation): add iconStyle 2018-03-12 16:34:30 +06:00
abrahambotros
edea86b3f4 Remove self (abrahambotros) from contributor list 2018-03-10 15:46:05 -08:00
Árni Benedikt Árnason
09d92860f8 Overloaded navigate method to handle new navigation options parameters 2018-03-09 17:56:01 +01:00
Árni Benedikt Árnason
994f2993af Revert "Overloaded navigate method to handle new navigation options parameters"
This reverts commit 94a484cff4.
2018-03-09 17:26:15 +01:00
Árni Benedikt Árnason
94a484cff4 Overloaded navigate method to handle new navigation options parameters 2018-03-09 17:20:33 +01:00
Árni Benedikt Árnason
439ab93ba5 Added pop and popToTop NavigationActions for react-navigation 2018-03-09 11:46:25 +01:00
ArmandoAssuncao
fa04697ee1 [react-navigation]: added types in navigate params 2018-03-02 23:21:22 -03:00
Steven
ce73af4e00 fixed error in react-navigation preventing declaring navigationOptions as a function (#23879) 2018-02-26 13:35:23 -08:00
Roberto Huertas
c37774d139 fixes issue #23759 (#23824) 2018-02-26 12:32:41 -08:00
Tim Wang
4739cf80e4 Make getStateForAction lastState optional 2018-02-26 16:53:56 +08:00
Tim Wang
820f42b0ff Fix addNavigationHelpers type 2018-02-26 15:49:42 +08:00
Tim Wang
07f5f260a9 Fix format and outdated comment 2018-02-26 14:34:40 +08:00
Tim Wang
9ef92bafb5 Replace React.ComponentType to React.ReactType 2018-02-26 14:29:37 +08:00
Tim Wang
32071c40b8 Refactor react-navigation types based on 1.2.0 flow type 2018-02-26 13:54:38 +08:00
Qibang
1547f30dd1 chore: exports Header component (#20706) 2017-10-23 14:52:23 -07:00
Andy
72bc73d061 react-*: Fix lint (#20825) 2017-10-23 07:31:51 -07:00
Jan Karres
8b75e6e5ed Bugfix set not required DrawerViewConfig options to optional (#20349) 2017-10-06 10:24:05 -07:00
Andy
a572fbd60d react-navigation: Use StyleProp on all "style" properties (#19611) 2017-09-07 09:12:45 -07:00
Andy
9f86de041a react-navigation: Fix compile errors (#19610) 2017-09-07 08:38:56 -07:00
Tim Wang
fa00e46e93 Use TextStyle for navigation text related style properties 2017-08-15 23:37:34 +08:00
Kyle Roach
2742c2dbc8 [react-navigation] Adds createNavigator, createNavigationContainer (#18217) 2017-08-14 12:10:49 -07:00
Charles Bunton
93b267aec8 Undeclared DrawItems and Unacceptable Value for contentComponents Attribute (#18359)
* The  method isn't declared type and the contentComponent attribute in  doesn't accept methods that return a react element

* changed drawItems declaration
2017-08-09 11:49:26 -07:00
HAMPLENI
a16df7e3ff [react-navigation] Allowing tabBarLabel function to return string (#18354) 2017-08-01 16:21:04 -07:00
tsai phan
8f0b5485dc Merge github.com:DefinitelyTyped/DefinitelyTyped 2017-07-06 12:35:40 +08:00