Commit Graph

2249 Commits

Author SHA1 Message Date
Brent Vatne
7f8d09b3b4 Release 3.8.0 2019-04-12 15:36:24 -07:00
Ashoat Tevosyan
fdbf5bfa15 [flow] Update for Flow 0.92 (#5806)
Changes:

1. We can now type React components with static members as `React.ComponentType` (instead of requiring the `StatelessFunctionalComponent`) hack.
2. We can now type-parameterize React components on all of their props, instead of just the ones we care about. Not sure why this wasn't previously. Note: this is a breaking change, in the sense that people's parameterization of `NavigationScreenComponent`, `NavigationNavigator`, and `NavigationContainer` may need to change.
3. The order of object-type-spread in the `getParam` definition has been switched. It was giving errors with the old order.
4. Avoid recursive type inference `NavigationScreenProp`. This was yielding an "*** Recursion limit exceeded ***" error, which was rather difficult to debug. We can just use a `NavigationState` and let the user cast.
5. Fix `onTransitionStart`/`onTransitionEnd` types in `NavigationStackViewConfig`.
6. Add `navigationConfig` property to `NavigationView`.
2019-04-12 12:31:44 -04:00
jeffreyffs
175f56f174 [Typescript] Add type for 'enableURLHandling' (#5803)
* updated types for 'enableURLHandling'

* Updated Changelog
2019-04-10 17:11:32 -07:00
Brent Vatne
338f95acf9 Release 3.7.1 - Rename 3.7.0 to 3.7.1 basically because I needed to rebase 2019-04-10 11:19:50 -07:00
Brent Vatne
79527bd847 Release 3.7.0 2019-04-10 11:17:11 -07:00
guptaamol
027471637e Improved TypeScript definition for bottom tab navigationOptions. (#5796) 2019-04-10 23:05:16 +05:30
Brent Vatne
63001fc8ba Update dependencies and lockfile 2019-04-10 10:25:44 -07:00
Ashoat Tevosyan
d7677fb9fe [flow] Fix TabBar types (#5800)
1. `TabBarTop` is `MaterialTopTabBar` now
2. `MaterialTopTabBar` does not have a `getButtonComponent` prop (accidentally added in #5648)
3. `BottomTabBar`'s `getButtonComponent` prop is a `React.Component`, not a `React.Node`
2019-04-10 12:35:52 -04:00
Ashoat Tevosyan
b9ed39ffed [flow] Support custom navigators using Transitioner (#5801) 2019-04-10 12:35:30 -04:00
zzzgit
1f5c33bf99 grammar error (#5768) 2019-04-05 17:45:48 +07:00
Brent Vatne
7ad4f2155e Release 3.6.1 2019-04-02 14:17:27 +02:00
Brent Vatne
620e8674af Release 3.6.0 2019-03-31 15:40:19 +02:00
Brent Vatne
81669cbd55 Add types for back button disabled and NoAnimation transition config 2019-03-31 15:31:40 +02:00
Faustino Kialungila
5de8e825af Adding missing getButtonComponent props to flow (#5648) 2019-03-28 01:01:48 +01:00
Jose G
4e74437a44 chore(typescript): export InitialLayout type (#5738) 2019-03-27 00:14:32 +01:00
alex clifton
f23ba70ad7 unhandled promise rejection failed to delete storage directory (#5727)
with:

await AsyncStorage.clear();

I'm getting this in ios:

unhandled promise rejection failed to delete storage directory

found this:

https://stackoverflow.com/questions/46736268/react-native-asyncstorage-clear-is-failing-on-ios

switched to use this instead:

await AsyncStorage.getAllKeys().then(AsyncStorage.multiRemove)

but that causes unhandled promise rejection in android.

this is working:

Platform.OS === 'ios' ? await AsyncStorage.getAllKeys().then(AsyncStorage.multiRemove) : await AsyncStorage.clear()
2019-03-22 14:13:05 -04:00
Jose G
ec7e1f7f8a chore(typescript): export ScreenProps (#5726) 2019-03-22 19:11:05 +01:00
Jose G
07e7df0186 [TypeScript] Export DrawerIconProps and DrawerLabelProps (#5715)
* chore(typescript): export DrawerIconProps and DrawerLabelProps

* chore: update changelog
2019-03-21 03:28:36 +01:00
Jose G
cdf8e9eb25 chore(typescript): export "TabBarIconProps" and "TabBarLabelProps" (#5712) 2019-03-20 18:02:12 +01:00
Brent Vatne
0f2792b65e Release 3.5.1 2019-03-19 16:22:51 -07:00
Brent Vatne
d563ef8559 Regenerate lockfile in NavigationPlayground 2019-03-19 16:17:38 -07:00
Brent Vatne
990260b943 Regenerate lockfile 2019-03-19 16:15:33 -07:00
Brent Vatne
ba7c30114e Export GestureContexts and add missing type for withOrientation, fix header back button title prop type 2019-03-19 13:58:18 -07:00
Brent Vatne
64bd6f7dfe Release 3.5.0 2019-03-19 11:05:23 -07:00
Jacob Powers
677d4e9950 Issue-5701: TabBarBottom -> BottomTabBar in type definitions (#5702)
* Issue-5701: TabBarBottom -> BottomTabBar in type definitions

* BottomTabBar changelog update
2019-03-19 10:45:54 -07:00
Julian Hundeloh
31908c5306 fix: export NavigationContext in types (#5707) 2019-03-19 18:44:54 +01:00
Brent Vatne
8feb4e34dc Release 3.4.1 2019-03-16 10:45:03 -07:00
AkiVer
e23d86af8a Fix missing ts def (#5689)
* fix: missing typescript definition file

* chore: update changelog for missing ts file
2019-03-16 10:41:42 -07:00
Brent Vatne
0482a89089 Simplify CI config 2019-03-16 10:39:42 -07:00
Brent Vatne
4c689ab7be Attempted fix for CI 2019-03-16 09:40:31 -07:00
Brent Vatne
d9eee984a5 Remove cache 2019-03-15 19:50:12 -07:00
Brent Vatne
45bce5d352 Remove unnecessary dependency in NavigationPlayground - node_modules is pulled in when using file://../../ in yarn 2019-03-15 19:40:39 -07:00
Brent Vatne
12499677e2 Fix jest test 2019-03-15 19:37:15 -07:00
Brent Vatne
edfd50b7fd Release 3.5.0-alpha.0 2019-03-15 16:19:19 -07:00
Brent Vatne
0d423f4ce7 Release 3.4.0 2019-03-15 11:03:42 -07:00
Brent Vatne
303e9bb278 Fix RNGH type definition 2019-03-15 10:32:37 -07:00
Brent Vatne
d3ce361d38 Enable tests on CI again (currently will fail because of TS error in RNGH) 2019-03-13 21:27:15 -07:00
Brent Vatne
65629caadd Get Jest running in NavigationPlayground 2019-03-13 21:24:15 -07:00
Brent Vatne
0cabc7fb7e Fix NavigationPlayground and bump some versions 2019-03-13 15:51:50 -07:00
Jan Hesters
f58491b6d8 Add TypeScript declaration file and convert NavigationPlayground to TypeScript 2018-11-23 14:02:31 +01:00
Steven Black
35e6bc50dc CustomTabs – consolidate all imports from react-navigation on the same line. (#5664) 2019-03-07 18:44:42 -05:00
Titus Efferian
8a4f4ac372 remove unused import and unused destructuring (#5622) 2019-03-01 04:11:25 +07:00
Danny Althoff
e4bf3efbe3 fixed typo in Custom TaB UI example (#5627) 2019-02-27 20:47:03 +01:00
Brent Vatne
e324760298 Release 3.3.2 2019-02-25 14:27:25 -08:00
Brent Vatne
efb10328b7 Release 3.3.1 2019-02-25 14:24:55 -08:00
Ashoat Tevosyan
d1f6a92c14 [flow] Update Flow libdef with Feb 2019 changes (#5599)
This corresponds to three `flow-typed` PRs:

1. https://github.com/flow-typed/flow-typed/pull/3140 Get rid of deprecated Navigator exports in 3.0
2. https://github.com/flow-typed/flow-typed/pull/3147 Refine AnimatedValue type
3. https://github.com/flow-typed/flow-typed/pull/3148 Introduce SafeAreaViewInsets type
2019-02-16 19:30:36 -05:00
Brent Vatne
cef8f62301 Remove autopublish from CI 2019-02-16 16:28:03 -08:00
Brent Vatne
61977ef747 Release 3.3.0 2019-02-16 16:16:22 -08:00
Brent Vatne
4c89ec5da1 Release 3.2.3 2019-02-13 21:13:36 -08:00
Brent Vatne
df6f40be32 Release 3.2.1 2019-02-09 10:31:49 -08:00