Commit Graph

153 Commits

Author SHA1 Message Date
Omar Diab
1bac5b9a6c Fix onRef typings (ComponentType -> Component), generic for specificity (#27055)
* correct type for withNavigation onRef, add generic to access class methods

* tests for withNavigation class correctness

* tabbing

* remove generic, add explicit type suggestion
2018-07-13 13:08:26 -07:00
Ullrich Schäfer
35835aa275 [react-navigation] Adding support for parameters in NavigationInjectedProps (#27226)
* Adding a failing test for getParam

This demonstrates that typing of `navigation.getParam` works when a parameter type is provided.

This fails with the following error:

```
ERROR: 559:54  expect  TypeScript@next compile error:
Argument of type '"title"' is not assignable to parameter of type '"unknown"'.
```

* Making test pass
2018-07-12 09:30:10 -07:00
Jinesh Shah
eb868d6677 Fixed headerLeft and headerRight props (#26881)
* Update index.d.ts

Fixed headerLeft and headerRight types

* Update index.d.ts
2018-07-05 10:14:11 -07:00
Ullrich Schäfer
3c42098631 Adding correct injected props for withNavigationFocus 2018-06-28 14:36:27 +02:00
Ullrich Schäfer
455ab41dbb Adding a test that fails 2018-06-28 14:29:38 +02:00
C_Minor
223f4e532c Values added for event argument in addListener 2018-06-24 20:52:07 +02:00
Omar Diab
5ecba05510 update withNavigation types, add test 2018-06-21 16:01:41 -07:00
Kyle Roach
ca21971cc3 (react-navigation) Allow setParams to be partial 2018-06-18 05:14:44 -04:00
Mine Starks
6bd023659d
Merge pull request #26374 from dawnmist/react-navigation/fix-header-props
[react-navigation]: Add missing fields required for custom header use in v2.x.
2018-06-13 09:49:33 -07:00
Sergei Butko
f496c936e8
[react-navigation] Add DrawerActions 2018-06-12 20:55:26 +03:00
Janeene Beeforth
f4ee3156b3 Add missing fields required for custom header use in v2.x.
See https://github.com/react-navigation/react-navigation/issues/4286
2018-06-08 22:03:03 +10:00
Kyle Roach
45a5c62653 [react-navigation] Add index to NavigationLeafRoute 2018-06-05 20:02:01 -04:00
Stephen Bird
1923e12cb7 Add StackActions 2018-06-04 17:52:14 -07:00
Jérémy Magrin
79bd7180d0 Fix createMaterialTopNavigator to createMaterialTopTabNavigator 2018-06-02 13:28:26 +02:00
Jérémy Magrin
418b3b2691 Fix paths 2018-06-02 13:03:44 +02:00
Jérémy Magrin
e030f2b4de Fix dependencies 2018-06-02 13:00:09 +02:00
Jérémy Magrin
529312a91e Fix subfolder error 2018-06-02 12:51:10 +02:00
Andy
e5ba2b3ffd
react-navigation: Fix lint (#26205) 2018-06-01 09:27:58 -07:00
Jérémy Magrin
abf06b4f43 Try to fix dependencies 2018-05-21 12:32:59 +02:00
Jérémy Magrin
bc24e50bc1 Change type definition for v2 2018-05-21 11:53:22 +02:00
Jérémy Magrin
ef1a48d2b2 Try to update type definition to new version of react-navigation 2.0.1 2018-05-17 14:36:47 +02:00
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
97b9d47d3a fix linter 2018-03-23 17:46:30 +03: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