Commit Graph

2263 Commits

Author SHA1 Message Date
Timmy Willison
bf6cac9af2 Add safeAreaInset type to BottomTabBarProps (#5906)
* Add safeAreaInset type to BottomTabBarProps

* Update CHANGELOG.md
2019-05-15 23:24:12 -04:00
satyajit.happy
1e5bd95ee4 chore: release 3.9.2 2019-05-15 11:24:45 +02:00
satyajit.happy
5d135219d0 chore: upgrade react-navigation-tabs 2019-05-15 11:23:25 +02:00
Seth
c967627e5f Add resetOnBlur type (#5868)
* Add resetOnBlur type

* Move resetOnBlur to correct interface

* Revert mistaken change to interface name
2019-05-08 13:57:52 -05:00
Luong Dang Hai
2b1e12340a correct getLabel to getLabelText (#5865)
* correct getLabel to getLabelText

* Update CHANGELOG.md
2019-05-03 04:53:08 +03:00
Tianyu Xie
75e9d5b0d7 Update react-navigation.d.ts (#5860)
* Update react-navigation.d.ts

* Update CHANGELOG.md
2019-04-30 16:38:25 -04:00
Isaac Clements
02d75d5c21 TabBarTop is MaterialTopTabBar now (#5856) 2019-04-30 00:54:51 +01:00
satyajit.happy
0fb24e14c6 chore: release 3.9.1 2019-04-25 10:58:46 +02:00
satyajit.happy
b651982a7d chore: update react-navigation-core 2019-04-25 10:58:04 +02:00
Brent Vatne
51cf60881a Release 3.9.0 2019-04-23 11:51:27 -07:00
mlodato517
424acc42a9 Removes duplicate NavigationInjectedProps export (#5828) 2019-04-18 21:13:18 -04:00
Ashoat Tevosyan
8cc6bcbf22 [flow] Fix NavigationScreenProp.getParam type (#5830)
In my last PR I flipped the order of these around to fix an error, but turns out that was just crippling the type. The correct solution here, to guarantee that the `$PropertyType` won't error if its type parameter don't have the property, is to use an unsealed object type.

Some additional context in discussion on #5806.
2019-04-18 21:12:31 -04:00
Edmundo Santos
02e0dad97c Add missing types for DrawerNavigatorConfig (#5820) 2019-04-17 19:28:25 +01:00
Luong Dang Hai
f1c5926ad2 chore: remove createTabNavigator out of ts definition (#5809)
* chore: remove createTabNavigator out of ts definition

* update change log file
2019-04-13 22:57:01 +03:00
Brent Vatne
4ddfcdb33a Release 3.8.1 2019-04-12 15:39:19 -07:00
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