mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-23 16:48:22 +00:00
Update to react-native@0.49 and flow-bin@0.53 (#2845)
* Update root package to react-native@0.49 and flow-bin@0.53
* Update NavigationPlayground package to react-native@0.49 and flow-bin@0.53
* Update ReduxExample package to react-native@0.49 and flow-bin@0.53
* flow-typed update (code-gen)
* Find-and-replace old types with new types
- `React.Element<*>` as the result of a render function is now `React.Node`
- `ReactClass<T>` as the type of a Component is now `React.ComponentType<typeof T>`
- `extends React.Component<DP, P, S>` is now `extends React.Component<P, S>`
- `React.Children<*>` as the type of a children prop is now `React.ChildrenArray<*>`
- Refs are now typed with `React.Ref`
There are also several tiny typo fixes in here.
* Avoid assuming state is NavigationRoute in addNavigationHelpers
For the root, top-level Navigator, the state is a simple `NavigationState` (with no route info) and we still use `addNavigationHelpers` for it. We can't assume `navigation.state.key` is accessible for this type, so we need to do runtime checks here.
* Fix type of NavigationScreenConfig
`navigationOptions` was incorrectly typed
* Give createNavigationContainer's State a type parameter
We want to be able to specifically type this guy so we can use specific NavigationState for things like the Drawer views without having to do runtime assertions about the state type
* Fix typing of NavigationAction
First of all, `NavigationAction` was being used as two different types, so I had to create the new `PossiblyDeprecatedNavigationAction` and add it as a type parameter everywhere. Second of all, generics and implied types were being used far more than they need to be, and they're hard to work with because Flow doesn't really explain things well when they go wrong.
* Make sure children scenes of CardStack have NavigationProp typed with NavigationRoute
CardStack's `NavigationScreenProp` is typed with `NavigationState`, but the children need `NavigationRoute`. Flow gets confused by the spread operator, even if the individual property is replaced later, so we need to explicitly list each property individually (just `dispatch`, actually).
* Allow prevTransitionProps parameter to be nullable
* Allow prevTransitionProps parameter to be nullable
* Narrow down a couple type parameters
* Move NavigationStateRoute cast to within Component.router check in createConfigGetter
* Update withCachedChildNavigation so it's typed correctly with React.ComponentType
* Add a $FlowFixMe for displayName
`React.StatelessFunctionalComponent` is missing `displayName` before Flow 0.54.0
See de37062ea2
* Make TouchableItem's onPress prop optional
`HeaderBackButton` can pass in an undefined onPress, and the React Native `Touchable*` components allow it too
* Simplify withCachedChildNavigation and get rid of generics
The generics don't help us here and they make the types more confusing
* Redefine NavigationComponent as direct intersection
The new type is technically identical to the old type, but Flow is confused by the old type...
* Save router to local var before checking createConfigGetter
Flow seems to think Component.router can change after the check
* Fix DrawerSidebar's navigation prop's type
In order for us to be able to generate a childNavigationProp, the original navigation prop has to have a NavigationState state.
* Colocate action.key check with action.type check in getStateForAction
For some reason, Flow thinks `action` can change sometime after `action.type` is checked. As a result, it's not properly concluding that `action.key` should exist. To avoid this, we pull `action.key` out immediately after doing the `action.type` check.
* Use bounded polymorphism to pass down all props in withCachedChildNavigation
Also makes sure the injected props are specified first in the union
Also removes an unused `eslint-disable-line` in `getScreenForRouteName`
* Make TabRouter's getComponentForState return NavigationComponent
`NavigationScreenComponent` is a subtype of `NavigationComponent`, but it's not clear that `getComponentForState` always returns a `NavigationScreenComponent`, as `getScreenForRouteName` returns `NavigationComponent`
* Define NavigationComponent's props using NavigationNavigatorProps
Right now the types ask Flow to infer the types of `NavigationComponent`'s props. (`NavigationComponent` is the union of `NavigationNavigator` and NavigationScreenComponent.) Instead, we type the props as subtypes of `NavigationNavigatorProps`, so we can properly access those props without type errors. We used bounded polymorphism in `createNavigationContainer` and `createNavigator` to pass down these props. We also explicitly type the action in `createNavigationContainer` so we can properly pass in a `NavigationInitAction` to the dispatch function.
* Parameterize NavigationTabRouterConfig
`NavigationTabRouterConfig` doesn't always take `NavigationTabScreenOptions`; sometimes, it takes `NavigationDrawerScreenOptions`.
* Make all NavigationOptions Exact types
We're seeing weird behavior when these are merged together. By making them Exact types, we make types don't get mangled when they're unioned.
https://flow.org/en/docs/types/unions/#toc-disjoint-unions-with-exact-types
* Silence errors in tests
These errors are unavoidable since we can't type the precise shape of a particular `NavigationState`.
* Include NavigationSetParamsAction in NavigationTabAction
`TabNavigator`'s `getStateForAction` definitely takes `NavigationSetParamsAction`.
* Explicitly list router as void in NavigationScreenComponent
This is so Flow knows that if a `NavigationComponent` has a `router` property, then it is definitely a `NavigationNavigator`.
* Fix website app navigator's type
* Fix createDocPage type in App
In an earlier commit I attempted to fix the types here, but I incorrectly read it as returning a navigator when it just returns a screen. For some reason the error didn't immediately show up.
* Fix NavigationComponent types
Five changes:
1. No longer parameterizing the props of `NavigationComponent`; directly specifying as `NavigationNavigatorProps`
2. Specify the two distinct kinds of route types (leaf and state) directly in `NavigationComponent`
3. Have `SceneView` directly take `NavigationComponent` and allow inferring of `NavigationSceneProp` type
4. Have `CardStack` directly take `NavigationComponent` as well
* Allow Flow to infer `NavigationAction` type in `createNavigator`
* Silence Flow in router code that handles navigator sub-routes
There's no way for us to tell Flow that routes that correspond to navigators should be `NavigationStateRoute`s
* Allow DrawerSidebar to take a null contentComponent
The way `DrawerNavigator` is set up, it's possible to pass in a null `contentComponent` in the config.
If somebody want to do this, we'll just make the `DrawerSidebar` not appear altogether. This is simpler than splitting the types so there's a possibly-unspecified one for the user input, but a definitely-specified one in `DrawerSidebar`.
* Specify missing screenProps prop in DrawerView
* Thread full NavigationStateRoute in to DrawerSidebar
This requiring making `withCachedChildNavigation` use bounded polymorphism to thread the `NavigationStateRoute` through instead of downgrading it to a `NavigationState`
* Make NavigationStateProp's state prop covariant
This means that `NavigationStateProp<NavigationStateRoute>` will be a subtype of `NavigationStateProp<NavigationRoute>` and `NavigationStateProp<NavigationState>`
* Silence Flow's complaints about a route not being a NavigationStateRoute
As mentioned in previous commits and in the comment, there is no way to type a specific navigation state shape, so we have to cast it and silence Flow's complaints.
* Get rid of style prop in CardStack
It looks like at some point, it was possible to specify a `style` prop that got passed all the way down to `Header`, the `TransitionConfig`'s `screenInterpolator`, and `Transitioner`. Doesn't look like we're using it anywhere, and there's a todo saying to remove it, and it's causing a type error.
* Infer type of options instead of using a subtype of {}
I think this has to do with {} allowing for unsealed objects. I'm not 100% sure, but this fixes 4/6 of the remaining errors!
* Fix two type errors in NavigationPlayground
One was just requiring an outdated type (`React.Children` instead of `React.ChildrenArray`), and the other was getting confused regarding types because of a spread operator.
* Use a covariant property to simplify withCachedChildNavigation's InputProps
This doesn't reduce any errors, but it's a bit simpler and cleaner.
* Silence last two Flow errors regarding withCachedChildNavigation injecting childNavigationProps
These are the only two errors I haven't been able to figure out at all. If I had more time I'd try and figure out the simplest case and report it to the Flow team, but I've been working on this for a week already and have to move on.
The issue at hand is that `withCachedChildNavigation` injects `childNavigationProps`, but Flow doesn't see this and thinks it needs to be specified by the view component. We're using the HOC pattern suggested by the Flow docs, and I've tried several other patterns to no avail.
* Use stock react-native instead of Expo's in NavigationPlayground
Expo's causes Flow errors, and apparently this is normal practice because the person who switched us to Expo did this too.
* Silence react-native-gesture-handler Flow errors in NavigationPlayground
Expo requires this package, but it causes Flow errors.
* Fix index check in DrawerSidebar
Silly me, falling for the typical "0 is falsey" problem...
* Rework deprecated action tests
In an earlier commit I moved the `NavigationActions.mapDeprecatedActionAndWarn` out from `getStateForAction` and into `createNavigationContainer`'s `dispatch` function. The tests need to be reworked to support this, as they were previously calling `getStateForAction` directly. I don't imagine any users are calling `getStateForAction` directly.
* Re-record two snapshots
The changes in these snapshots are by design and don't affect anything.
* Infer type of options in NavigationScreenConfig
The issue is that sometimes we include options for different navigators in a single blob.
* Infer types of action and options in createNavigationContainer
Particulary helps with Options. Makes the types more specific and gets rid of an error that only shows up when using the library
* Don't use generics for NavigationState in createNavigationContainer
There's no particular reason for having those generics there, since there's no way we'd be able to get Flow to understand the exact shape of particular navigation states anyways. This fixes a bug when integrating this version of the project into my repo.
* Move ReduxExample to react-native@0.49.3 instead of custom Expo version
This commit is contained in:
parent
701337024e
commit
d1c434b54c
@ -17,9 +17,6 @@
|
||||
"env": {
|
||||
"jasmine": true
|
||||
},
|
||||
"globals": {
|
||||
"ReactClass": true
|
||||
},
|
||||
"rules": {
|
||||
"prettier/prettier": ["error", {
|
||||
"trailingComma": "es5",
|
||||
|
27
.flowconfig
27
.flowconfig
@ -2,15 +2,20 @@
|
||||
; We fork some components by platform
|
||||
.*/*[.]android.js
|
||||
|
||||
; Ignore templates for 'react-native init'
|
||||
.*/local-cli/templates/.*
|
||||
|
||||
; Ignore "BUCK" generated dirs
|
||||
.*/node_modules/react-native/\.buckd/
|
||||
|
||||
; Ignore unexpected extra "@providesModule"
|
||||
.*/node_modules/.*/node_modules/fbjs/.*
|
||||
|
||||
; Ignore duplicate module providers
|
||||
; For RN Apps installed via npm, "Libraries" folder is inside
|
||||
; "node_modules/react-native" but in the source repo it is in the root
|
||||
.*/Libraries/react-native/React.js
|
||||
|
||||
; Ignore polyfills
|
||||
.*/Libraries/polyfills/.*
|
||||
|
||||
; Ignore website node_modules react and react-native
|
||||
<PROJECT_ROOT>/website/node_modules/react/.*
|
||||
<PROJECT_ROOT>/website/node_modules/react-native/.*
|
||||
@ -25,16 +30,17 @@
|
||||
|
||||
[libs]
|
||||
node_modules/react-native/Libraries/react-native/react-native-interface.js
|
||||
node_modules/react-native/flow
|
||||
node_modules/react-native/flow/
|
||||
|
||||
[options]
|
||||
module.system=haste
|
||||
|
||||
experimental.strict_type_args=true
|
||||
emoji=true
|
||||
|
||||
munge_underscores=true
|
||||
|
||||
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/stubs/RelativeImageStub.js.flow'
|
||||
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
|
||||
|
||||
module.file_ext=.js
|
||||
module.file_ext=.jsx
|
||||
module.file_ext=.json
|
||||
@ -42,11 +48,16 @@ module.file_ext=.native.js
|
||||
|
||||
suppress_type=$FlowIssue
|
||||
suppress_type=$FlowFixMe
|
||||
suppress_type=$FlowFixMeProps
|
||||
suppress_type=$FlowFixMeState
|
||||
suppress_type=$FixMe
|
||||
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-2]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||
|
||||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
0.53.0
|
||||
|
@ -172,11 +172,11 @@ Generic title that can be used as a fallback for `headerTitle` and `drawerLabel`
|
||||
|
||||
#### `drawerLabel`
|
||||
|
||||
String, React Element or a function that given `{ focused: boolean, tintColor: string }` returns a React.Element, to display in drawer sidebar. When undefined, scene `title` is used
|
||||
String, React Element or a function that given `{ focused: boolean, tintColor: string }` returns a React.Node, to display in drawer sidebar. When undefined, scene `title` is used
|
||||
|
||||
#### `drawerIcon`
|
||||
|
||||
React Element or a function, that given `{ focused: boolean, tintColor: string }` returns a React.Element, to display in drawer sidebar
|
||||
React Element or a function, that given `{ focused: boolean, tintColor: string }` returns a React.Node, to display in drawer sidebar
|
||||
|
||||
#### `drawerLockMode`
|
||||
|
||||
|
@ -169,11 +169,11 @@ True or false to show or hide the tab bar, if not set then defaults to true.
|
||||
|
||||
#### `tabBarIcon`
|
||||
|
||||
React Element or a function that given `{ focused: boolean, tintColor: string }` returns a React.Element, to display in tab bar.
|
||||
React Element or a function that given `{ focused: boolean, tintColor: string }` returns a React.Node, to display in tab bar.
|
||||
|
||||
#### `tabBarLabel`
|
||||
|
||||
Title string of a tab displayed in the tab bar or React Element or a function that given `{ focused: boolean, tintColor: string }` returns a React.Element, to display in tab bar. When undefined, scene `title` is used. To hide, see `tabBarOptions.showLabel` in the previous section.
|
||||
Title string of a tab displayed in the tab bar or React Element or a function that given `{ focused: boolean, tintColor: string }` returns a React.Node, to display in tab bar. When undefined, scene `title` is used. To hide, see `tabBarOptions.showLabel` in the previous section.
|
||||
|
||||
#### `tabBarOnPress`
|
||||
|
||||
|
@ -153,7 +153,7 @@ For a comprehensive tutorial on how to create custom transitions, see this [blog
|
||||
|
||||
#### Flow definition
|
||||
```js
|
||||
render: (transitionProps: NavigationTransitionProps, prevTransitionProps: ?NavigationTransitionProps) => React.Element<*>,
|
||||
render: (transitionProps: NavigationTransitionProps, prevTransitionProps: ?NavigationTransitionProps) => React.Node,
|
||||
```
|
||||
|
||||
#### Parameters
|
||||
|
@ -12,7 +12,9 @@
|
||||
; For RN Apps installed via npm, "Libraries" folder is inside
|
||||
; "node_modules/react-native" but in the source repo it is in the root
|
||||
.*/Libraries/react-native/React.js
|
||||
.*/Libraries/react-native/ReactNative.js
|
||||
|
||||
; Ignore polyfills
|
||||
.*/Libraries/polyfills/.*
|
||||
|
||||
.*/react-navigation/node_modules/.*
|
||||
|
||||
@ -38,11 +40,14 @@
|
||||
.*/react-navigation/examples/ReduxExample/.*
|
||||
.*/react-navigation/website/.*
|
||||
|
||||
; This package is required by Expo and causes Flow errors
|
||||
.*/node_modules/react-native-gesture-handler/.*
|
||||
|
||||
[include]
|
||||
|
||||
[libs]
|
||||
node_modules/react-native/Libraries/react-native/react-native-interface.js
|
||||
node_modules/react-native/flow
|
||||
node_modules/react-native/flow/
|
||||
|
||||
[options]
|
||||
module.system=haste
|
||||
@ -61,11 +66,16 @@ module.file_ext=.native.js
|
||||
|
||||
suppress_type=$FlowIssue
|
||||
suppress_type=$FlowFixMe
|
||||
suppress_type=$FlowFixMeProps
|
||||
suppress_type=$FlowFixMeState
|
||||
suppress_type=$FixMe
|
||||
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||
|
||||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
0.53.0
|
||||
|
@ -12,7 +12,7 @@
|
||||
"icon": "./assets/icons/react-navigation.png",
|
||||
"hideExponentText": false
|
||||
},
|
||||
"sdkVersion": "21.0.0",
|
||||
"sdkVersion": "22.0.0",
|
||||
"entryPoint": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
|
||||
"packagerOpts": {
|
||||
"assetExts": [
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: e14baf3e1691e7c886f1f41fac30e58e
|
||||
// flow-typed version: <<STUB>>/babel-jest_v^21.0.0/flow_v0.51.0
|
||||
// flow-typed signature: 5964a245d3129ecd50da1f74a2f86454
|
||||
// flow-typed version: <<STUB>>/babel-jest_v^21.0.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 98c0d9a4701eab283a2fe842f1cede94
|
||||
// flow-typed version: <<STUB>>/expo_v^20.1.2/flow_v0.51.0
|
||||
// flow-typed signature: 4fb1f6897647ab1ad25d819aa06d2d6c
|
||||
// flow-typed version: <<STUB>>/expo_v^22.0.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -30,6 +30,26 @@ declare module 'expo/src/__tests__/Amplitude-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/AuthSession-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/Constants-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/ErrorRecovery-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/Expo-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/Facebook-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/Location-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -38,6 +58,10 @@ declare module 'expo/src/__tests__/Notifications-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/SecureStore-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/__tests__/Segment-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -54,11 +78,15 @@ declare module 'expo/src/apisAreAvailable' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/AppLoading.android' {
|
||||
declare module 'expo/src/AppLoading' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/AppLoading.ios' {
|
||||
declare module 'expo/src/AppLoadingNativeWrapper.android' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/AppLoadingNativeWrapper.ios' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
@ -70,6 +98,10 @@ declare module 'expo/src/Audio' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/AuthSession' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/AV' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -86,6 +118,10 @@ declare module 'expo/src/BlurView.ios' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/Brightness' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/Camera' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -106,6 +142,10 @@ declare module 'expo/src/DocumentPicker' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/ErrorRecovery' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/Expo' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -238,6 +278,26 @@ declare module 'expo/src/registerRootComponent' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/RNAdMobBanner' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/RNAdMobInterstitial' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/RNAdMobRewarded' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/RNPublisherBanner' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/RootErrorBoundary' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/ScreenOrientation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -254,6 +314,14 @@ declare module 'expo/src/sensor/__tests__/Accelerometer-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/sensor/__tests__/DeviceMotion-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/sensor/__tests__/DeviceSensor-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/sensor/__tests__/Gyroscope-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -262,11 +330,15 @@ declare module 'expo/src/sensor/__tests__/Magnetometer-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/sensor/__tests__/ThreeAxisSensor-test' {
|
||||
declare module 'expo/src/sensor/Accelerometer' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/sensor/Accelerometer' {
|
||||
declare module 'expo/src/sensor/DeviceMotion' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'expo/src/sensor/DeviceSensor' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
@ -329,12 +401,30 @@ declare module 'expo/AppEntry.js' {
|
||||
declare module 'expo/src/__tests__/Amplitude-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/Amplitude-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/AuthSession-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/AuthSession-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/Constants-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/Constants-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/ErrorRecovery-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/ErrorRecovery-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/Expo-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/Expo-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/Facebook-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/Facebook-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/Location-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/Location-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/Notifications-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/Notifications-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/SecureStore-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/SecureStore-test'>;
|
||||
}
|
||||
declare module 'expo/src/__tests__/Segment-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/__tests__/Segment-test'>;
|
||||
}
|
||||
@ -347,11 +437,14 @@ declare module 'expo/src/Amplitude.js' {
|
||||
declare module 'expo/src/apisAreAvailable.js' {
|
||||
declare module.exports: $Exports<'expo/src/apisAreAvailable'>;
|
||||
}
|
||||
declare module 'expo/src/AppLoading.android.js' {
|
||||
declare module.exports: $Exports<'expo/src/AppLoading.android'>;
|
||||
declare module 'expo/src/AppLoading.js' {
|
||||
declare module.exports: $Exports<'expo/src/AppLoading'>;
|
||||
}
|
||||
declare module 'expo/src/AppLoading.ios.js' {
|
||||
declare module.exports: $Exports<'expo/src/AppLoading.ios'>;
|
||||
declare module 'expo/src/AppLoadingNativeWrapper.android.js' {
|
||||
declare module.exports: $Exports<'expo/src/AppLoadingNativeWrapper.android'>;
|
||||
}
|
||||
declare module 'expo/src/AppLoadingNativeWrapper.ios.js' {
|
||||
declare module.exports: $Exports<'expo/src/AppLoadingNativeWrapper.ios'>;
|
||||
}
|
||||
declare module 'expo/src/Asset.js' {
|
||||
declare module.exports: $Exports<'expo/src/Asset'>;
|
||||
@ -359,6 +452,9 @@ declare module 'expo/src/Asset.js' {
|
||||
declare module 'expo/src/Audio.js' {
|
||||
declare module.exports: $Exports<'expo/src/Audio'>;
|
||||
}
|
||||
declare module 'expo/src/AuthSession.js' {
|
||||
declare module.exports: $Exports<'expo/src/AuthSession'>;
|
||||
}
|
||||
declare module 'expo/src/AV.js' {
|
||||
declare module.exports: $Exports<'expo/src/AV'>;
|
||||
}
|
||||
@ -371,6 +467,9 @@ declare module 'expo/src/BlurView.android.js' {
|
||||
declare module 'expo/src/BlurView.ios.js' {
|
||||
declare module.exports: $Exports<'expo/src/BlurView.ios'>;
|
||||
}
|
||||
declare module 'expo/src/Brightness.js' {
|
||||
declare module.exports: $Exports<'expo/src/Brightness'>;
|
||||
}
|
||||
declare module 'expo/src/Camera.js' {
|
||||
declare module.exports: $Exports<'expo/src/Camera'>;
|
||||
}
|
||||
@ -386,6 +485,9 @@ declare module 'expo/src/DangerZone.js' {
|
||||
declare module 'expo/src/DocumentPicker.js' {
|
||||
declare module.exports: $Exports<'expo/src/DocumentPicker'>;
|
||||
}
|
||||
declare module 'expo/src/ErrorRecovery.js' {
|
||||
declare module.exports: $Exports<'expo/src/ErrorRecovery'>;
|
||||
}
|
||||
declare module 'expo/src/Expo.js' {
|
||||
declare module.exports: $Exports<'expo/src/Expo'>;
|
||||
}
|
||||
@ -485,6 +587,21 @@ declare module 'expo/src/Permissions.js' {
|
||||
declare module 'expo/src/registerRootComponent.js' {
|
||||
declare module.exports: $Exports<'expo/src/registerRootComponent'>;
|
||||
}
|
||||
declare module 'expo/src/RNAdMobBanner.js' {
|
||||
declare module.exports: $Exports<'expo/src/RNAdMobBanner'>;
|
||||
}
|
||||
declare module 'expo/src/RNAdMobInterstitial.js' {
|
||||
declare module.exports: $Exports<'expo/src/RNAdMobInterstitial'>;
|
||||
}
|
||||
declare module 'expo/src/RNAdMobRewarded.js' {
|
||||
declare module.exports: $Exports<'expo/src/RNAdMobRewarded'>;
|
||||
}
|
||||
declare module 'expo/src/RNPublisherBanner.js' {
|
||||
declare module.exports: $Exports<'expo/src/RNPublisherBanner'>;
|
||||
}
|
||||
declare module 'expo/src/RootErrorBoundary.js' {
|
||||
declare module.exports: $Exports<'expo/src/RootErrorBoundary'>;
|
||||
}
|
||||
declare module 'expo/src/ScreenOrientation.js' {
|
||||
declare module.exports: $Exports<'expo/src/ScreenOrientation'>;
|
||||
}
|
||||
@ -497,18 +614,27 @@ declare module 'expo/src/Segment.js' {
|
||||
declare module 'expo/src/sensor/__tests__/Accelerometer-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/__tests__/Accelerometer-test'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/__tests__/DeviceMotion-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/__tests__/DeviceMotion-test'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/__tests__/DeviceSensor-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/__tests__/DeviceSensor-test'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/__tests__/Gyroscope-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/__tests__/Gyroscope-test'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/__tests__/Magnetometer-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/__tests__/Magnetometer-test'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/__tests__/ThreeAxisSensor-test.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/__tests__/ThreeAxisSensor-test'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/Accelerometer.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/Accelerometer'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/DeviceMotion.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/DeviceMotion'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/DeviceSensor.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/DeviceSensor'>;
|
||||
}
|
||||
declare module 'expo/src/sensor/Gyroscope.js' {
|
||||
declare module.exports: $Exports<'expo/src/sensor/Gyroscope'>;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 1ad43f34af61a5f84f991aeeb41b14a8
|
||||
// flow-typed version: <<STUB>>/jest-expo_v^20.0.0/flow_v0.51.0
|
||||
// flow-typed signature: 72ab5b9c7dcb88b82de627702a0db27a
|
||||
// flow-typed version: <<STUB>>/jest-expo_v^22.0.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -22,6 +22,10 @@ declare module 'jest-expo' {
|
||||
* require those files directly. Feel free to delete any files that aren't
|
||||
* needed.
|
||||
*/
|
||||
declare module 'jest-expo/src/createMockConstants' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'jest-expo/src/expoModules' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -31,6 +35,9 @@ declare module 'jest-expo/src/setup' {
|
||||
}
|
||||
|
||||
// Filename aliases
|
||||
declare module 'jest-expo/src/createMockConstants.js' {
|
||||
declare module.exports: $Exports<'jest-expo/src/createMockConstants'>;
|
||||
}
|
||||
declare module 'jest-expo/src/expoModules.js' {
|
||||
declare module.exports: $Exports<'jest-expo/src/expoModules'>;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: a2ca8bd1c604da82be334553e16a579e
|
||||
// flow-typed version: <<STUB>>/jest_v^21.0.1/flow_v0.51.0
|
||||
// flow-typed signature: 3ba80f288ae054d394dca2d025d14dd9
|
||||
// flow-typed version: <<STUB>>/jest_v^21.0.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 48eadf295dbbf5eb2f1696eb8b426800
|
||||
// flow-typed version: <<STUB>>/react-addons-test-utils_v16.0.0-alpha.3/flow_v0.51.0
|
||||
// flow-typed signature: fe3ce80849031f84c8c106122bef896a
|
||||
// flow-typed version: <<STUB>>/react-addons-test-utils_v16.0.0-alpha.3/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: ff6ce4595bf218af569f33145a252678
|
||||
// flow-typed version: <<STUB>>/react-native-scripts_v^1.3.1/flow_v0.51.0
|
||||
// flow-typed signature: bd52927dcfdd08c54751906ebaf7cfa1
|
||||
// flow-typed version: <<STUB>>/react-native-scripts_v^1.3.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 9a65b380a4d6ff7a8471416981e8cf13
|
||||
// flow-typed version: <<STUB>>/react-test-renderer_v16.0.0-alpha.12/flow_v0.51.0
|
||||
// flow-typed signature: bc77d9125cee5869fd1f9ffe55231e21
|
||||
// flow-typed version: <<STUB>>/react-test-renderer_v16.0.0-alpha.12/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -69,7 +69,7 @@ const CustomTabView = ({ router, navigation }) => {
|
||||
<CustomTabBar navigation={navigation} />
|
||||
<ActiveScreen
|
||||
navigation={addNavigationHelpers({
|
||||
...navigation,
|
||||
dispatch: navigation.dispatch,
|
||||
state: routes[index],
|
||||
})}
|
||||
/>
|
||||
|
@ -7,9 +7,9 @@ import { StyleSheet, Text } from 'react-native';
|
||||
/**
|
||||
* Used across examples as a screen placeholder.
|
||||
*/
|
||||
import type { Children } from 'react';
|
||||
import type { ChildrenArray } from 'react';
|
||||
|
||||
const SampleText = ({ children }: { children?: Children }) => (
|
||||
const SampleText = ({ children }: { children?: ChildrenArray<*> }) => (
|
||||
<Text style={styles.sampleText}>{children}</Text>
|
||||
);
|
||||
|
||||
|
@ -12,16 +12,16 @@
|
||||
"test": "node node_modules/jest/bin/jest.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"expo": "^21.0.1",
|
||||
"react": "16.0.0-alpha.12",
|
||||
"react-native": "~0.48.4",
|
||||
"expo": "^22.0.0",
|
||||
"react": "16.0.0-beta.5",
|
||||
"react-native": "^0.49.3",
|
||||
"react-navigation": "file:../.."
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-jest": "^21.0.0",
|
||||
"flow-bin": "^0.51.0",
|
||||
"flow-bin": "0.53.0",
|
||||
"jest": "^21.0.1",
|
||||
"jest-expo": "^21.0.0",
|
||||
"jest-expo": "^22.0.0",
|
||||
"react-addons-test-utils": "16.0.0-alpha.3",
|
||||
"react-native-scripts": "^1.3.1",
|
||||
"react-test-renderer": "16.0.0-alpha.12"
|
||||
|
@ -515,7 +515,7 @@ babel-messages@^6.23.0:
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-check-es2015-constants@^6.5.0, babel-plugin-check-es2015-constants@^6.7.2, babel-plugin-check-es2015-constants@^6.8.0:
|
||||
babel-plugin-check-es2015-constants@^6.5.0, babel-plugin-check-es2015-constants@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"
|
||||
dependencies:
|
||||
@ -585,7 +585,7 @@ babel-plugin-syntax-jsx@^6.5.0, babel-plugin-syntax-jsx@^6.8.0:
|
||||
version "6.18.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
|
||||
|
||||
babel-plugin-syntax-object-rest-spread@^6.5.0, babel-plugin-syntax-object-rest-spread@^6.8.0:
|
||||
babel-plugin-syntax-object-rest-spread@^6.8.0:
|
||||
version "6.13.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
|
||||
|
||||
@ -601,7 +601,7 @@ babel-plugin-transform-async-to-generator@6.16.0:
|
||||
babel-plugin-syntax-async-functions "^6.8.0"
|
||||
babel-runtime "^6.0.0"
|
||||
|
||||
babel-plugin-transform-class-properties@^6.18.0, babel-plugin-transform-class-properties@^6.5.0, babel-plugin-transform-class-properties@^6.6.0, babel-plugin-transform-class-properties@^6.8.0:
|
||||
babel-plugin-transform-class-properties@^6.18.0, babel-plugin-transform-class-properties@^6.5.0, babel-plugin-transform-class-properties@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac"
|
||||
dependencies:
|
||||
@ -625,19 +625,19 @@ babel-plugin-transform-define@^1.3.0:
|
||||
lodash "4.17.4"
|
||||
traverse "0.6.6"
|
||||
|
||||
babel-plugin-transform-es2015-arrow-functions@^6.5.0, babel-plugin-transform-es2015-arrow-functions@^6.5.2, babel-plugin-transform-es2015-arrow-functions@^6.8.0:
|
||||
babel-plugin-transform-es2015-arrow-functions@^6.5.0, babel-plugin-transform-es2015-arrow-functions@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-block-scoped-functions@^6.6.5, babel-plugin-transform-es2015-block-scoped-functions@^6.8.0:
|
||||
babel-plugin-transform-es2015-block-scoped-functions@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.7.1, babel-plugin-transform-es2015-block-scoping@^6.8.0:
|
||||
babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.8.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f"
|
||||
dependencies:
|
||||
@ -647,7 +647,7 @@ babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es201
|
||||
babel-types "^6.26.0"
|
||||
lodash "^4.17.4"
|
||||
|
||||
babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-classes@^6.6.5, babel-plugin-transform-es2015-classes@^6.8.0:
|
||||
babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-classes@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db"
|
||||
dependencies:
|
||||
@ -661,20 +661,20 @@ babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-clas
|
||||
babel-traverse "^6.24.1"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-computed-properties@^6.5.0, babel-plugin-transform-es2015-computed-properties@^6.6.5, babel-plugin-transform-es2015-computed-properties@^6.8.0:
|
||||
babel-plugin-transform-es2015-computed-properties@^6.5.0, babel-plugin-transform-es2015-computed-properties@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
babel-template "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-destructuring@6.x, babel-plugin-transform-es2015-destructuring@^6.5.0, babel-plugin-transform-es2015-destructuring@^6.6.5, babel-plugin-transform-es2015-destructuring@^6.8.0:
|
||||
babel-plugin-transform-es2015-destructuring@6.x, babel-plugin-transform-es2015-destructuring@^6.5.0, babel-plugin-transform-es2015-destructuring@^6.8.0:
|
||||
version "6.23.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-for-of@^6.5.0, babel-plugin-transform-es2015-for-of@^6.6.0, babel-plugin-transform-es2015-for-of@^6.8.0:
|
||||
babel-plugin-transform-es2015-for-of@^6.5.0, babel-plugin-transform-es2015-for-of@^6.8.0:
|
||||
version "6.23.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691"
|
||||
dependencies:
|
||||
@ -694,7 +694,7 @@ babel-plugin-transform-es2015-literals@^6.5.0, babel-plugin-transform-es2015-lit
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.7.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0:
|
||||
babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a"
|
||||
dependencies:
|
||||
@ -703,14 +703,14 @@ babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es201
|
||||
babel-template "^6.26.0"
|
||||
babel-types "^6.26.0"
|
||||
|
||||
babel-plugin-transform-es2015-object-super@^6.6.5, babel-plugin-transform-es2015-object-super@^6.8.0:
|
||||
babel-plugin-transform-es2015-object-super@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d"
|
||||
dependencies:
|
||||
babel-helper-replace-supers "^6.24.1"
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-parameters@6.x, babel-plugin-transform-es2015-parameters@^6.5.0, babel-plugin-transform-es2015-parameters@^6.7.0, babel-plugin-transform-es2015-parameters@^6.8.0:
|
||||
babel-plugin-transform-es2015-parameters@6.x, babel-plugin-transform-es2015-parameters@^6.5.0, babel-plugin-transform-es2015-parameters@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b"
|
||||
dependencies:
|
||||
@ -728,7 +728,7 @@ babel-plugin-transform-es2015-shorthand-properties@6.x, babel-plugin-transform-e
|
||||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-spread@6.x, babel-plugin-transform-es2015-spread@^6.5.0, babel-plugin-transform-es2015-spread@^6.6.5, babel-plugin-transform-es2015-spread@^6.8.0:
|
||||
babel-plugin-transform-es2015-spread@6.x, babel-plugin-transform-es2015-spread@^6.5.0, babel-plugin-transform-es2015-spread@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1"
|
||||
dependencies:
|
||||
@ -742,7 +742,7 @@ babel-plugin-transform-es2015-sticky-regex@6.x:
|
||||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-template-literals@^6.5.0, babel-plugin-transform-es2015-template-literals@^6.6.5, babel-plugin-transform-es2015-template-literals@^6.8.0:
|
||||
babel-plugin-transform-es2015-template-literals@^6.5.0, babel-plugin-transform-es2015-template-literals@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d"
|
||||
dependencies:
|
||||
@ -756,13 +756,13 @@ babel-plugin-transform-es2015-unicode-regex@6.x:
|
||||
babel-runtime "^6.22.0"
|
||||
regexpu-core "^2.0.0"
|
||||
|
||||
babel-plugin-transform-es3-member-expression-literals@^6.5.0, babel-plugin-transform-es3-member-expression-literals@^6.8.0:
|
||||
babel-plugin-transform-es3-member-expression-literals@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es3-member-expression-literals/-/babel-plugin-transform-es3-member-expression-literals-6.22.0.tgz#733d3444f3ecc41bef8ed1a6a4e09657b8969ebb"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es3-property-literals@^6.5.0, babel-plugin-transform-es3-property-literals@^6.8.0:
|
||||
babel-plugin-transform-es3-property-literals@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es3-property-literals/-/babel-plugin-transform-es3-property-literals-6.22.0.tgz#b2078d5842e22abf40f73e8cde9cd3711abd5758"
|
||||
dependencies:
|
||||
@ -783,7 +783,7 @@ babel-plugin-transform-export-extensions@^6.22.0:
|
||||
babel-plugin-syntax-export-extensions "^6.8.0"
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-flow-strip-types@^6.21.0, babel-plugin-transform-flow-strip-types@^6.22.0, babel-plugin-transform-flow-strip-types@^6.5.0, babel-plugin-transform-flow-strip-types@^6.7.0, babel-plugin-transform-flow-strip-types@^6.8.0:
|
||||
babel-plugin-transform-flow-strip-types@^6.21.0, babel-plugin-transform-flow-strip-types@^6.22.0, babel-plugin-transform-flow-strip-types@^6.5.0, babel-plugin-transform-flow-strip-types@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
|
||||
dependencies:
|
||||
@ -796,7 +796,7 @@ babel-plugin-transform-object-assign@^6.5.0:
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-object-rest-spread@^6.20.2, babel-plugin-transform-object-rest-spread@^6.5.0, babel-plugin-transform-object-rest-spread@^6.6.5, babel-plugin-transform-object-rest-spread@^6.8.0:
|
||||
babel-plugin-transform-object-rest-spread@^6.20.2, babel-plugin-transform-object-rest-spread@^6.5.0, babel-plugin-transform-object-rest-spread@^6.8.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06"
|
||||
dependencies:
|
||||
@ -837,7 +837,7 @@ babel-plugin-transform-strict-mode@^6.24.1:
|
||||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-polyfill@^6.20.0, babel-polyfill@^6.23.0:
|
||||
babel-polyfill@^6.23.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
|
||||
dependencies:
|
||||
@ -869,36 +869,7 @@ babel-preset-expo@^3.0.0:
|
||||
babel-plugin-transform-export-extensions "^6.22.0"
|
||||
babel-preset-react-native "^2.1.0"
|
||||
|
||||
babel-preset-fbjs@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-1.0.0.tgz#c972e5c9b301d4ec9e7971f4aec3e14ac017a8b0"
|
||||
dependencies:
|
||||
babel-plugin-check-es2015-constants "^6.7.2"
|
||||
babel-plugin-syntax-flow "^6.5.0"
|
||||
babel-plugin-syntax-object-rest-spread "^6.5.0"
|
||||
babel-plugin-syntax-trailing-function-commas "^6.5.0"
|
||||
babel-plugin-transform-class-properties "^6.6.0"
|
||||
babel-plugin-transform-es2015-arrow-functions "^6.5.2"
|
||||
babel-plugin-transform-es2015-block-scoped-functions "^6.6.5"
|
||||
babel-plugin-transform-es2015-block-scoping "^6.7.1"
|
||||
babel-plugin-transform-es2015-classes "^6.6.5"
|
||||
babel-plugin-transform-es2015-computed-properties "^6.6.5"
|
||||
babel-plugin-transform-es2015-destructuring "^6.6.5"
|
||||
babel-plugin-transform-es2015-for-of "^6.6.0"
|
||||
babel-plugin-transform-es2015-literals "^6.5.0"
|
||||
babel-plugin-transform-es2015-modules-commonjs "^6.7.0"
|
||||
babel-plugin-transform-es2015-object-super "^6.6.5"
|
||||
babel-plugin-transform-es2015-parameters "^6.7.0"
|
||||
babel-plugin-transform-es2015-shorthand-properties "^6.5.0"
|
||||
babel-plugin-transform-es2015-spread "^6.6.5"
|
||||
babel-plugin-transform-es2015-template-literals "^6.6.5"
|
||||
babel-plugin-transform-es3-member-expression-literals "^6.5.0"
|
||||
babel-plugin-transform-es3-property-literals "^6.5.0"
|
||||
babel-plugin-transform-flow-strip-types "^6.7.0"
|
||||
babel-plugin-transform-object-rest-spread "^6.6.5"
|
||||
object-assign "^4.0.1"
|
||||
|
||||
babel-preset-fbjs@^2.1.4:
|
||||
babel-preset-fbjs@^2.1.2, babel-preset-fbjs@^2.1.4:
|
||||
version "2.1.4"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-2.1.4.tgz#22f358e6654073acf61e47a052a777d7bccf03af"
|
||||
dependencies:
|
||||
@ -1035,7 +1006,7 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26
|
||||
lodash "^4.17.4"
|
||||
to-fast-properties "^1.0.3"
|
||||
|
||||
babylon@^6.17.0, babylon@^6.18.0:
|
||||
babylon@^6.18.0:
|
||||
version "6.18.0"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
|
||||
|
||||
@ -1178,12 +1149,6 @@ bser@1.0.2:
|
||||
dependencies:
|
||||
node-int64 "^0.4.0"
|
||||
|
||||
bser@^1.0.2:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.3.tgz#d63da19ee17330a0e260d2a34422b21a89520317"
|
||||
dependencies:
|
||||
node-int64 "^0.4.0"
|
||||
|
||||
bser@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719"
|
||||
@ -1522,7 +1487,7 @@ core-js@^1.0.0:
|
||||
version "1.2.7"
|
||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
|
||||
|
||||
core-js@^2.2.2, core-js@^2.4.0, core-js@^2.5.0:
|
||||
core-js@^2.2.2, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0:
|
||||
version "2.5.1"
|
||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.1.tgz#ae6874dc66937789b80754ff5428df66819ca50b"
|
||||
|
||||
@ -1542,13 +1507,6 @@ create-react-class@^15.5.2:
|
||||
loose-envify "^1.3.1"
|
||||
object-assign "^4.1.1"
|
||||
|
||||
cross-spawn@^3.0.1:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982"
|
||||
dependencies:
|
||||
lru-cache "^4.0.1"
|
||||
which "^1.2.9"
|
||||
|
||||
cross-spawn@^5.0.1, cross-spawn@^5.1.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
|
||||
@ -1779,7 +1737,7 @@ envinfo@^3.0.0:
|
||||
os-name "^2.0.1"
|
||||
which "^1.2.14"
|
||||
|
||||
"errno@>=0.1.1 <0.2.0-0", errno@^0.1.4:
|
||||
errno@^0.1.4:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d"
|
||||
dependencies:
|
||||
@ -1904,24 +1862,24 @@ expect@^21.0.0:
|
||||
jest-message-util "^21.0.0"
|
||||
jest-regex-util "^21.0.0"
|
||||
|
||||
expo@^21.0.1:
|
||||
version "21.0.2"
|
||||
resolved "https://registry.yarnpkg.com/expo/-/expo-21.0.2.tgz#8420b9f4b95503c464575a31fd9c820363caef9d"
|
||||
expo@^22.0.0:
|
||||
version "22.0.0"
|
||||
resolved "https://registry.yarnpkg.com/expo/-/expo-22.0.0.tgz#a83fbccd2ab0aa9b6398475c6b36e8bae9f39f25"
|
||||
dependencies:
|
||||
"@expo/vector-icons" "^5.0.0"
|
||||
babel-preset-expo "^3.0.0"
|
||||
fbemitter "^2.1.1"
|
||||
lodash.map "^4.6.0"
|
||||
lodash.zipobject "^4.1.3"
|
||||
lottie-react-native "2.2.0"
|
||||
lottie-react-native "2.2.7"
|
||||
md5-file "^3.1.1"
|
||||
pretty-format "^20.0.3"
|
||||
prop-types "^15.5.10"
|
||||
qs "^6.5.0"
|
||||
react-native-branch "2.0.0-beta.3"
|
||||
react-native-gesture-handler "1.0.0-alpha.22"
|
||||
react-native-maps "0.15.3"
|
||||
react-native-svg "5.3.0"
|
||||
react-native-gesture-handler "1.0.0-alpha.28"
|
||||
react-native-maps "0.17.0"
|
||||
react-native-svg "5.4.2"
|
||||
uuid-js "^0.7.5"
|
||||
websql "https://github.com/expo/node-websql/archive/18.0.0.tar.gz"
|
||||
|
||||
@ -2027,32 +1985,20 @@ fbemitter@^2.1.1:
|
||||
dependencies:
|
||||
fbjs "^0.8.4"
|
||||
|
||||
fbjs-scripts@^0.7.0:
|
||||
version "0.7.1"
|
||||
resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-0.7.1.tgz#4f115e218e243e3addbf0eddaac1e3c62f703fac"
|
||||
fbjs-scripts@^0.8.1:
|
||||
version "0.8.1"
|
||||
resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-0.8.1.tgz#c1c6efbecb7f008478468976b783880c2f669765"
|
||||
dependencies:
|
||||
babel-core "^6.7.2"
|
||||
babel-preset-fbjs "^1.0.0"
|
||||
core-js "^1.0.0"
|
||||
cross-spawn "^3.0.1"
|
||||
babel-preset-fbjs "^2.1.2"
|
||||
core-js "^2.4.1"
|
||||
cross-spawn "^5.1.0"
|
||||
gulp-util "^3.0.4"
|
||||
object-assign "^4.0.1"
|
||||
semver "^5.1.0"
|
||||
through2 "^2.0.0"
|
||||
|
||||
fbjs@0.8.12:
|
||||
version "0.8.12"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04"
|
||||
dependencies:
|
||||
core-js "^1.0.0"
|
||||
isomorphic-fetch "^2.1.1"
|
||||
loose-envify "^1.0.0"
|
||||
object-assign "^4.1.0"
|
||||
promise "^7.1.1"
|
||||
setimmediate "^1.0.5"
|
||||
ua-parser-js "^0.7.9"
|
||||
|
||||
fbjs@^0.8.4, fbjs@^0.8.9:
|
||||
fbjs@0.8.14, fbjs@^0.8.4, fbjs@^0.8.9:
|
||||
version "0.8.14"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.14.tgz#d1dbe2be254c35a91e09f31f9cd50a40b2a0ed1c"
|
||||
dependencies:
|
||||
@ -2144,9 +2090,9 @@ find-up@^2.1.0:
|
||||
dependencies:
|
||||
locate-path "^2.0.0"
|
||||
|
||||
flow-bin@^0.51.0:
|
||||
version "0.51.1"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.51.1.tgz#7929c6f0a94e765429fcb2ee6e468278faa9c732"
|
||||
flow-bin@0.53.0:
|
||||
version "0.53.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.53.0.tgz#f7830e609ca02b12db4127114213cccc7c0771b9"
|
||||
|
||||
for-in@^1.0.1:
|
||||
version "1.0.2"
|
||||
@ -3017,22 +2963,14 @@ jest-diff@^21.0.0:
|
||||
jest-get-type "^21.0.0"
|
||||
pretty-format "^21.0.0"
|
||||
|
||||
jest-docblock@20.1.0-chi.1:
|
||||
version "20.1.0-chi.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-chi.1.tgz#06981ab0e59498a2492333b0c5502a82e4603207"
|
||||
|
||||
jest-docblock@20.1.0-delta.4:
|
||||
version "20.1.0-delta.4"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-delta.4.tgz#360d4f5fb702730c4136c4e71e5706188a694682"
|
||||
jest-docblock@20.1.0-echo.1:
|
||||
version "20.1.0-echo.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-echo.1.tgz#be02f43ee019f97e6b83267c746ac7b40d290fe8"
|
||||
|
||||
jest-docblock@^20.0.3:
|
||||
version "20.0.3"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.0.3.tgz#17bea984342cc33d83c50fbe1545ea0efaa44712"
|
||||
|
||||
jest-docblock@^20.1.0-chi.1:
|
||||
version "20.1.0-echo.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-echo.1.tgz#be02f43ee019f97e6b83267c746ac7b40d290fe8"
|
||||
|
||||
jest-docblock@^21.0.0:
|
||||
version "21.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.0.0.tgz#7dd57568543aec98910f749540afc15fab53a27f"
|
||||
@ -3067,36 +3005,26 @@ jest-environment-node@^21.0.0:
|
||||
jest-mock "^21.0.0"
|
||||
jest-util "^21.0.0"
|
||||
|
||||
jest-expo@^21.0.0:
|
||||
version "21.0.2"
|
||||
resolved "https://registry.yarnpkg.com/jest-expo/-/jest-expo-21.0.2.tgz#87c60deda29a9c67d5c59f24e7104aff6ce0aaee"
|
||||
jest-expo@^22.0.0:
|
||||
version "22.0.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-expo/-/jest-expo-22.0.1.tgz#029d73ad6f21a365fe55fff0c64d6cdb0046df68"
|
||||
dependencies:
|
||||
babel-jest "^20.0.3"
|
||||
jest "^20.0.4"
|
||||
react-test-renderer "16.0.0-alpha.12"
|
||||
json5 "^0.5.1"
|
||||
react-test-renderer "16.0.0-beta.5"
|
||||
|
||||
jest-get-type@^21.0.0:
|
||||
version "21.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-21.0.0.tgz#ed8667533c0a24a4feebbf492661f23abac3620b"
|
||||
|
||||
jest-haste-map@20.1.0-chi.1:
|
||||
version "20.1.0-chi.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.1.0-chi.1.tgz#db5f5f31362c76e242b40ea9a3ccfa364719cee3"
|
||||
jest-haste-map@20.1.0-echo.1:
|
||||
version "20.1.0-echo.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.1.0-echo.1.tgz#6dfd0c97bb51a68a35dd98326e04f994157dce81"
|
||||
dependencies:
|
||||
fb-watchman "^2.0.0"
|
||||
graceful-fs "^4.1.11"
|
||||
jest-docblock "^20.1.0-chi.1"
|
||||
micromatch "^2.3.11"
|
||||
sane "^2.0.0"
|
||||
worker-farm "^1.3.1"
|
||||
|
||||
jest-haste-map@20.1.0-delta.4:
|
||||
version "20.1.0-delta.4"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.1.0-delta.4.tgz#12e32b297a6dd49705cacde938029fc158834006"
|
||||
dependencies:
|
||||
fb-watchman "^2.0.0"
|
||||
graceful-fs "^4.1.11"
|
||||
jest-docblock "20.1.0-delta.4"
|
||||
jest-docblock "20.1.0-echo.1"
|
||||
micromatch "^2.3.11"
|
||||
sane "^2.0.0"
|
||||
worker-farm "^1.3.1"
|
||||
@ -3721,16 +3649,16 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1:
|
||||
dependencies:
|
||||
js-tokens "^3.0.0"
|
||||
|
||||
lottie-ios@^2.0.5:
|
||||
lottie-ios@^2.1.3:
|
||||
version "2.1.3"
|
||||
resolved "https://registry.yarnpkg.com/lottie-ios/-/lottie-ios-2.1.3.tgz#57b2328511a26606dc6de7a74bbdbf77f92c6aa0"
|
||||
|
||||
lottie-react-native@2.2.0:
|
||||
version "2.2.0"
|
||||
resolved "https://registry.yarnpkg.com/lottie-react-native/-/lottie-react-native-2.2.0.tgz#18196806ef6546cd3e01b24fc5a5974f02e4f017"
|
||||
lottie-react-native@2.2.7:
|
||||
version "2.2.7"
|
||||
resolved "https://registry.yarnpkg.com/lottie-react-native/-/lottie-react-native-2.2.7.tgz#d89cf6e0a093693d5fed2999a986cbcb1a090955"
|
||||
dependencies:
|
||||
invariant "^2.2.2"
|
||||
lottie-ios "^2.0.5"
|
||||
lottie-ios "^2.1.3"
|
||||
prop-types "^15.5.10"
|
||||
react-native-safe-module "^1.1.0"
|
||||
|
||||
@ -3820,9 +3748,9 @@ methods@^1.1.1, methods@~1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
|
||||
|
||||
metro-bundler@^0.11.0:
|
||||
version "0.11.0"
|
||||
resolved "https://registry.yarnpkg.com/metro-bundler/-/metro-bundler-0.11.0.tgz#ba5d2ae34943da28a37c2098047ad265c16fddf4"
|
||||
metro-bundler@^0.13.0:
|
||||
version "0.13.0"
|
||||
resolved "https://registry.yarnpkg.com/metro-bundler/-/metro-bundler-0.13.0.tgz#a1510eaecfc3db8ef46d2a936a3cc18f651e26f7"
|
||||
dependencies:
|
||||
absolute-path "^0.0.0"
|
||||
async "^2.4.0"
|
||||
@ -3833,17 +3761,17 @@ metro-bundler@^0.11.0:
|
||||
babel-preset-fbjs "^2.1.4"
|
||||
babel-preset-react-native "^2.0.0"
|
||||
babel-register "^6.24.1"
|
||||
babylon "^6.17.0"
|
||||
babylon "^6.18.0"
|
||||
chalk "^1.1.1"
|
||||
concat-stream "^1.6.0"
|
||||
core-js "^2.2.2"
|
||||
debug "^2.2.0"
|
||||
denodeify "^1.2.1"
|
||||
fbjs "0.8.12"
|
||||
fbjs "0.8.14"
|
||||
graceful-fs "^4.1.3"
|
||||
image-size "^0.6.0"
|
||||
jest-docblock "20.1.0-chi.1"
|
||||
jest-haste-map "20.1.0-chi.1"
|
||||
jest-docblock "20.1.0-echo.1"
|
||||
jest-haste-map "20.1.0-echo.1"
|
||||
json-stable-stringify "^1.0.1"
|
||||
json5 "^0.4.0"
|
||||
left-pad "^1.1.3"
|
||||
@ -4654,15 +4582,15 @@ react-native-drawer-layout@1.3.2:
|
||||
dependencies:
|
||||
react-native-dismiss-keyboard "1.0.0"
|
||||
|
||||
react-native-gesture-handler@1.0.0-alpha.22:
|
||||
version "1.0.0-alpha.22"
|
||||
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.0.0-alpha.22.tgz#96e5ae08b26a9e99d115f6e16f63d7487ef995fc"
|
||||
react-native-gesture-handler@1.0.0-alpha.28:
|
||||
version "1.0.0-alpha.28"
|
||||
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.0.0-alpha.28.tgz#198c776b7b7d299f9b03017f666a9829f996e30d"
|
||||
dependencies:
|
||||
prop-types "^15.5.10"
|
||||
|
||||
react-native-maps@0.15.3:
|
||||
version "0.15.3"
|
||||
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-0.15.3.tgz#5d9e0a8e30ecc51dc755b7a3b9d6b6ed5e2dd08c"
|
||||
react-native-maps@0.17.0:
|
||||
version "0.17.0"
|
||||
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-0.17.0.tgz#d10fa94a049432c46b6ee03fe9db84c83da65c8b"
|
||||
|
||||
react-native-safe-module@^1.1.0:
|
||||
version "1.2.0"
|
||||
@ -4689,18 +4617,18 @@ react-native-scripts@^1.3.1:
|
||||
rimraf "^2.6.1"
|
||||
xdl "44.0.0"
|
||||
|
||||
react-native-svg@5.3.0:
|
||||
version "5.3.0"
|
||||
resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-5.3.0.tgz#0d2ca98bee6726d627c2ca31617ac9c5f7d42daf"
|
||||
react-native-svg@5.4.2:
|
||||
version "5.4.2"
|
||||
resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-5.4.2.tgz#a01b4d88cda4b8ef4b2bc1adf05e11ec93a77b79"
|
||||
dependencies:
|
||||
color "^0.11.1"
|
||||
lodash "^4.16.6"
|
||||
|
||||
react-native-tab-view@^0.0.69:
|
||||
version "0.0.69"
|
||||
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.69.tgz#f52d4354a98a382f10eb5fcf61db5216c91dc7e7"
|
||||
react-native-tab-view@^0.0.70:
|
||||
version "0.0.70"
|
||||
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.70.tgz#1dd2ded32acd0cb6bfef38d26e53675db733b37b"
|
||||
dependencies:
|
||||
prop-types "^15.5.8"
|
||||
prop-types "^15.5.10"
|
||||
|
||||
react-native-vector-icons@4.1.1:
|
||||
version "4.1.1"
|
||||
@ -4710,59 +4638,38 @@ react-native-vector-icons@4.1.1:
|
||||
prop-types "^15.5.8"
|
||||
yargs "^6.3.0"
|
||||
|
||||
react-native@~0.48.4:
|
||||
version "0.48.4"
|
||||
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.48.4.tgz#f305e9fef069a5b3f6a7250ddd50f603cf30ab2d"
|
||||
react-native@^0.49.3:
|
||||
version "0.49.5"
|
||||
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.49.5.tgz#89f0fe93a8da4db2670c4bd0d81131a2ff617f27"
|
||||
dependencies:
|
||||
absolute-path "^0.0.0"
|
||||
art "^0.10.0"
|
||||
async "^2.4.0"
|
||||
babel-core "^6.24.1"
|
||||
babel-generator "^6.24.1"
|
||||
babel-plugin-external-helpers "^6.18.0"
|
||||
babel-plugin-syntax-trailing-function-commas "^6.20.0"
|
||||
babel-plugin-transform-async-to-generator "6.16.0"
|
||||
babel-plugin-transform-class-properties "^6.18.0"
|
||||
babel-plugin-transform-flow-strip-types "^6.21.0"
|
||||
babel-plugin-transform-object-rest-spread "^6.20.2"
|
||||
babel-polyfill "^6.20.0"
|
||||
babel-preset-es2015-node "^6.1.1"
|
||||
babel-preset-fbjs "^2.1.4"
|
||||
babel-preset-react-native "^2.0.0"
|
||||
babel-register "^6.24.1"
|
||||
babel-runtime "^6.23.0"
|
||||
babel-traverse "^6.24.1"
|
||||
babel-types "^6.24.1"
|
||||
babylon "^6.17.0"
|
||||
base64-js "^1.1.2"
|
||||
bser "^1.0.2"
|
||||
chalk "^1.1.1"
|
||||
commander "^2.9.0"
|
||||
concat-stream "^1.6.0"
|
||||
connect "^2.8.3"
|
||||
core-js "^2.2.2"
|
||||
create-react-class "^15.5.2"
|
||||
debug "^2.2.0"
|
||||
denodeify "^1.2.1"
|
||||
envinfo "^3.0.0"
|
||||
errno ">=0.1.1 <0.2.0-0"
|
||||
event-target-shim "^1.0.5"
|
||||
fbjs "0.8.12"
|
||||
fbjs-scripts "^0.7.0"
|
||||
form-data "^2.1.1"
|
||||
fbjs "0.8.14"
|
||||
fbjs-scripts "^0.8.1"
|
||||
fs-extra "^1.0.0"
|
||||
glob "^7.1.1"
|
||||
graceful-fs "^4.1.3"
|
||||
inquirer "^3.0.6"
|
||||
jest-haste-map "20.1.0-delta.4"
|
||||
json-stable-stringify "^1.0.1"
|
||||
json5 "^0.4.0"
|
||||
left-pad "^1.1.3"
|
||||
lodash "^4.16.6"
|
||||
merge-stream "^1.0.1"
|
||||
metro-bundler "^0.11.0"
|
||||
metro-bundler "^0.13.0"
|
||||
mime "^1.3.4"
|
||||
mime-types "2.1.11"
|
||||
minimist "^1.2.0"
|
||||
mkdirp "^0.5.1"
|
||||
node-fetch "^1.3.3"
|
||||
@ -4776,30 +4683,19 @@ react-native@~0.48.4:
|
||||
react-clone-referenced-element "^1.0.1"
|
||||
react-devtools-core "^2.5.0"
|
||||
react-timer-mixin "^0.13.2"
|
||||
react-transform-hmr "^1.0.4"
|
||||
rebound "^0.0.13"
|
||||
regenerator-runtime "^0.9.5"
|
||||
request "^2.79.0"
|
||||
rimraf "^2.5.4"
|
||||
sane "~1.4.1"
|
||||
semver "^5.0.3"
|
||||
shell-quote "1.6.1"
|
||||
source-map "^0.5.6"
|
||||
stacktrace-parser "^0.1.3"
|
||||
temp "0.8.3"
|
||||
throat "^4.1.0"
|
||||
whatwg-fetch "^1.0.0"
|
||||
wordwrap "^1.0.0"
|
||||
write-file-atomic "^1.2.0"
|
||||
ws "^1.1.0"
|
||||
xcode "^0.9.1"
|
||||
xmldoc "^0.4.0"
|
||||
xpipe "^1.0.5"
|
||||
xtend ">=4.0.0 <4.1.0-0"
|
||||
yargs "^6.4.0"
|
||||
|
||||
"react-navigation@file:../..":
|
||||
version "1.0.0-beta.13"
|
||||
version "1.0.0-beta.15"
|
||||
dependencies:
|
||||
babel-plugin-transform-define "^1.3.0"
|
||||
clamp "^1.0.1"
|
||||
@ -4807,7 +4703,7 @@ react-native@~0.48.4:
|
||||
path-to-regexp "^1.7.0"
|
||||
prop-types "^15.5.10"
|
||||
react-native-drawer-layout-polyfill "^1.3.2"
|
||||
react-native-tab-view "^0.0.69"
|
||||
react-native-tab-view "^0.0.70"
|
||||
|
||||
react-proxy@^1.1.7:
|
||||
version "1.1.8"
|
||||
@ -4834,6 +4730,13 @@ react-test-renderer@16.0.0-alpha.12:
|
||||
fbjs "^0.8.9"
|
||||
object-assign "^4.1.0"
|
||||
|
||||
react-test-renderer@16.0.0-beta.5:
|
||||
version "16.0.0-beta.5"
|
||||
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.0.0-beta.5.tgz#6169e2ea96e8d21645662b369c23239974cd1f11"
|
||||
dependencies:
|
||||
fbjs "^0.8.9"
|
||||
object-assign "^4.1.0"
|
||||
|
||||
react-timer-mixin@^0.13.2:
|
||||
version "0.13.3"
|
||||
resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz#0da8b9f807ec07dc3e854d082c737c65605b3d22"
|
||||
@ -4845,11 +4748,10 @@ react-transform-hmr@^1.0.4:
|
||||
global "^4.3.0"
|
||||
react-proxy "^1.1.7"
|
||||
|
||||
react@16.0.0-alpha.12:
|
||||
version "16.0.0-alpha.12"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0-alpha.12.tgz#8c59485281485df319b6f77682d8dd0621c08194"
|
||||
react@16.0.0-beta.5:
|
||||
version "16.0.0-beta.5"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0-beta.5.tgz#b4abba9bce7db72c30633db54a148614b6574e79"
|
||||
dependencies:
|
||||
create-react-class "^15.5.2"
|
||||
fbjs "^0.8.9"
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.0"
|
||||
@ -4898,10 +4800,6 @@ readable-stream@2, readable-stream@^2.0.1, readable-stream@^2.0.5, readable-stre
|
||||
string_decoder "~1.0.3"
|
||||
util-deprecate "~1.0.1"
|
||||
|
||||
rebound@^0.0.13:
|
||||
version "0.0.13"
|
||||
resolved "https://registry.yarnpkg.com/rebound/-/rebound-0.0.13.tgz#4a225254caf7da756797b19c5817bf7a7941fac1"
|
||||
|
||||
redux-logger@^2.7.4:
|
||||
version "2.10.2"
|
||||
resolved "https://registry.yarnpkg.com/redux-logger/-/redux-logger-2.10.2.tgz#3c5a5f0a6f32577c1deadf6655f257f82c6c3937"
|
||||
@ -5138,17 +5036,6 @@ sane@^2.0.0:
|
||||
optionalDependencies:
|
||||
fsevents "^1.1.1"
|
||||
|
||||
sane@~1.4.1:
|
||||
version "1.4.1"
|
||||
resolved "https://registry.yarnpkg.com/sane/-/sane-1.4.1.tgz#88f763d74040f5f0c256b6163db399bf110ac715"
|
||||
dependencies:
|
||||
exec-sh "^0.2.0"
|
||||
fb-watchman "^1.8.0"
|
||||
minimatch "^3.0.2"
|
||||
minimist "^1.1.1"
|
||||
walker "~1.0.5"
|
||||
watch "~0.10.0"
|
||||
|
||||
sane@~1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/sane/-/sane-1.6.0.tgz#9610c452307a135d29c1fdfe2547034180c46775"
|
||||
@ -5987,14 +5874,14 @@ wordwrap@0.0.2:
|
||||
version "0.0.2"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
|
||||
|
||||
wordwrap@^1.0.0, wordwrap@~1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
|
||||
|
||||
wordwrap@~0.0.2:
|
||||
version "0.0.3"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
|
||||
|
||||
wordwrap@~1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
|
||||
|
||||
worker-farm@^1.3.1:
|
||||
version "1.5.0"
|
||||
resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.5.0.tgz#adfdf0cd40581465ed0a1f648f9735722afd5c8d"
|
||||
@ -6143,7 +6030,7 @@ xregexp@2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943"
|
||||
|
||||
"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.1, xtend@~4.0.1:
|
||||
xtend@^4.0.1, xtend@~4.0.1:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
|
||||
|
||||
|
@ -1,63 +0,0 @@
|
||||
[ignore]
|
||||
; We fork some components by platform
|
||||
.*/*[.]android.js
|
||||
|
||||
; Ignore "BUCK" generated dirs
|
||||
<PROJECT_ROOT>/\.buckd/
|
||||
|
||||
; Ignore unexpected extra "@providesModule"
|
||||
.*/node_modules/.*/node_modules/fbjs/.*
|
||||
|
||||
; Ignore duplicate module providers
|
||||
; For RN Apps installed via npm, "Libraries" folder is inside
|
||||
; "node_modules/react-native" but in the source repo it is in the root
|
||||
.*/Libraries/react-native/React.js
|
||||
.*/Libraries/react-native/ReactNative.js
|
||||
|
||||
; Additional create-react-native-app ignores
|
||||
|
||||
; Ignore duplicate module providers
|
||||
.*/node_modules/fbemitter/lib/*
|
||||
|
||||
; Ignore misbehaving dev-dependencies
|
||||
.*/node_modules/xdl/build/*
|
||||
.*/node_modules/reqwest/tests/*
|
||||
|
||||
; Ignore missing expo-sdk dependencies (temporarily)
|
||||
; https://github.com/expo/expo/issues/162
|
||||
.*/node_modules/expo/src/*
|
||||
|
||||
; Ignore react-native-fbads dependency of the expo sdk
|
||||
.*/node_modules/react-native-fbads/*
|
||||
|
||||
[include]
|
||||
|
||||
[libs]
|
||||
node_modules/react-native/Libraries/react-native/react-native-interface.js
|
||||
node_modules/react-native/flow
|
||||
flow/
|
||||
|
||||
[options]
|
||||
module.system=haste
|
||||
|
||||
emoji=true
|
||||
|
||||
experimental.strict_type_args=true
|
||||
|
||||
munge_underscores=true
|
||||
|
||||
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
|
||||
|
||||
suppress_type=$FlowIssue
|
||||
suppress_type=$FlowFixMe
|
||||
suppress_type=$FixMe
|
||||
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||
|
||||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
^0.45.0
|
@ -12,7 +12,7 @@
|
||||
"icon": "./assets/icons/react-navigation.png",
|
||||
"hideExponentText": false
|
||||
},
|
||||
"sdkVersion": "21.0.0",
|
||||
"sdkVersion": "22.0.0",
|
||||
"entryPoint": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
|
||||
"packagerOpts": {
|
||||
"assetExts": [
|
||||
|
@ -22,17 +22,17 @@
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"expo": "^21.0.1",
|
||||
"expo": "^22.0.0",
|
||||
"prop-types": "^15.5.10",
|
||||
"react": "16.0.0-alpha.12",
|
||||
"react-native": "~0.48.4",
|
||||
"react": "16.0.0-beta.5",
|
||||
"react-native": "^0.49.3",
|
||||
"react-redux": "^5.0.6",
|
||||
"redux": "^3.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-jest": "^21.0.0",
|
||||
"jest": "^21.0.1",
|
||||
"jest-expo": "^21.0.0",
|
||||
"jest-expo": "^22.0.0",
|
||||
"react-native-scripts": "^1.3.1",
|
||||
"react-navigation": "file:../..",
|
||||
"react-test-renderer": "16.0.0-alpha.12"
|
||||
|
@ -515,7 +515,7 @@ babel-messages@^6.23.0:
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-check-es2015-constants@^6.5.0, babel-plugin-check-es2015-constants@^6.7.2, babel-plugin-check-es2015-constants@^6.8.0:
|
||||
babel-plugin-check-es2015-constants@^6.5.0, babel-plugin-check-es2015-constants@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"
|
||||
dependencies:
|
||||
@ -585,7 +585,7 @@ babel-plugin-syntax-jsx@^6.5.0, babel-plugin-syntax-jsx@^6.8.0:
|
||||
version "6.18.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
|
||||
|
||||
babel-plugin-syntax-object-rest-spread@^6.5.0, babel-plugin-syntax-object-rest-spread@^6.8.0:
|
||||
babel-plugin-syntax-object-rest-spread@^6.8.0:
|
||||
version "6.13.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
|
||||
|
||||
@ -601,7 +601,7 @@ babel-plugin-transform-async-to-generator@6.16.0:
|
||||
babel-plugin-syntax-async-functions "^6.8.0"
|
||||
babel-runtime "^6.0.0"
|
||||
|
||||
babel-plugin-transform-class-properties@^6.18.0, babel-plugin-transform-class-properties@^6.5.0, babel-plugin-transform-class-properties@^6.6.0, babel-plugin-transform-class-properties@^6.8.0:
|
||||
babel-plugin-transform-class-properties@^6.18.0, babel-plugin-transform-class-properties@^6.5.0, babel-plugin-transform-class-properties@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac"
|
||||
dependencies:
|
||||
@ -625,19 +625,19 @@ babel-plugin-transform-define@^1.3.0:
|
||||
lodash "4.17.4"
|
||||
traverse "0.6.6"
|
||||
|
||||
babel-plugin-transform-es2015-arrow-functions@^6.5.0, babel-plugin-transform-es2015-arrow-functions@^6.5.2, babel-plugin-transform-es2015-arrow-functions@^6.8.0:
|
||||
babel-plugin-transform-es2015-arrow-functions@^6.5.0, babel-plugin-transform-es2015-arrow-functions@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-block-scoped-functions@^6.6.5, babel-plugin-transform-es2015-block-scoped-functions@^6.8.0:
|
||||
babel-plugin-transform-es2015-block-scoped-functions@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.7.1, babel-plugin-transform-es2015-block-scoping@^6.8.0:
|
||||
babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.8.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f"
|
||||
dependencies:
|
||||
@ -647,7 +647,7 @@ babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es201
|
||||
babel-types "^6.26.0"
|
||||
lodash "^4.17.4"
|
||||
|
||||
babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-classes@^6.6.5, babel-plugin-transform-es2015-classes@^6.8.0:
|
||||
babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-classes@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db"
|
||||
dependencies:
|
||||
@ -661,20 +661,20 @@ babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-clas
|
||||
babel-traverse "^6.24.1"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-computed-properties@^6.5.0, babel-plugin-transform-es2015-computed-properties@^6.6.5, babel-plugin-transform-es2015-computed-properties@^6.8.0:
|
||||
babel-plugin-transform-es2015-computed-properties@^6.5.0, babel-plugin-transform-es2015-computed-properties@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
babel-template "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-destructuring@6.x, babel-plugin-transform-es2015-destructuring@^6.5.0, babel-plugin-transform-es2015-destructuring@^6.6.5, babel-plugin-transform-es2015-destructuring@^6.8.0:
|
||||
babel-plugin-transform-es2015-destructuring@6.x, babel-plugin-transform-es2015-destructuring@^6.5.0, babel-plugin-transform-es2015-destructuring@^6.8.0:
|
||||
version "6.23.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-for-of@^6.5.0, babel-plugin-transform-es2015-for-of@^6.6.0, babel-plugin-transform-es2015-for-of@^6.8.0:
|
||||
babel-plugin-transform-es2015-for-of@^6.5.0, babel-plugin-transform-es2015-for-of@^6.8.0:
|
||||
version "6.23.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691"
|
||||
dependencies:
|
||||
@ -694,7 +694,7 @@ babel-plugin-transform-es2015-literals@^6.5.0, babel-plugin-transform-es2015-lit
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.7.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0:
|
||||
babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a"
|
||||
dependencies:
|
||||
@ -703,14 +703,14 @@ babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es201
|
||||
babel-template "^6.26.0"
|
||||
babel-types "^6.26.0"
|
||||
|
||||
babel-plugin-transform-es2015-object-super@^6.6.5, babel-plugin-transform-es2015-object-super@^6.8.0:
|
||||
babel-plugin-transform-es2015-object-super@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d"
|
||||
dependencies:
|
||||
babel-helper-replace-supers "^6.24.1"
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es2015-parameters@6.x, babel-plugin-transform-es2015-parameters@^6.5.0, babel-plugin-transform-es2015-parameters@^6.7.0, babel-plugin-transform-es2015-parameters@^6.8.0:
|
||||
babel-plugin-transform-es2015-parameters@6.x, babel-plugin-transform-es2015-parameters@^6.5.0, babel-plugin-transform-es2015-parameters@^6.8.0:
|
||||
version "6.24.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b"
|
||||
dependencies:
|
||||
@ -728,7 +728,7 @@ babel-plugin-transform-es2015-shorthand-properties@6.x, babel-plugin-transform-e
|
||||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-spread@6.x, babel-plugin-transform-es2015-spread@^6.5.0, babel-plugin-transform-es2015-spread@^6.6.5, babel-plugin-transform-es2015-spread@^6.8.0:
|
||||
babel-plugin-transform-es2015-spread@6.x, babel-plugin-transform-es2015-spread@^6.5.0, babel-plugin-transform-es2015-spread@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1"
|
||||
dependencies:
|
||||
@ -742,7 +742,7 @@ babel-plugin-transform-es2015-sticky-regex@6.x:
|
||||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-plugin-transform-es2015-template-literals@^6.5.0, babel-plugin-transform-es2015-template-literals@^6.6.5, babel-plugin-transform-es2015-template-literals@^6.8.0:
|
||||
babel-plugin-transform-es2015-template-literals@^6.5.0, babel-plugin-transform-es2015-template-literals@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d"
|
||||
dependencies:
|
||||
@ -756,13 +756,13 @@ babel-plugin-transform-es2015-unicode-regex@6.x:
|
||||
babel-runtime "^6.22.0"
|
||||
regexpu-core "^2.0.0"
|
||||
|
||||
babel-plugin-transform-es3-member-expression-literals@^6.5.0, babel-plugin-transform-es3-member-expression-literals@^6.8.0:
|
||||
babel-plugin-transform-es3-member-expression-literals@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es3-member-expression-literals/-/babel-plugin-transform-es3-member-expression-literals-6.22.0.tgz#733d3444f3ecc41bef8ed1a6a4e09657b8969ebb"
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-es3-property-literals@^6.5.0, babel-plugin-transform-es3-property-literals@^6.8.0:
|
||||
babel-plugin-transform-es3-property-literals@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es3-property-literals/-/babel-plugin-transform-es3-property-literals-6.22.0.tgz#b2078d5842e22abf40f73e8cde9cd3711abd5758"
|
||||
dependencies:
|
||||
@ -783,7 +783,7 @@ babel-plugin-transform-export-extensions@^6.22.0:
|
||||
babel-plugin-syntax-export-extensions "^6.8.0"
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-flow-strip-types@^6.21.0, babel-plugin-transform-flow-strip-types@^6.22.0, babel-plugin-transform-flow-strip-types@^6.5.0, babel-plugin-transform-flow-strip-types@^6.7.0, babel-plugin-transform-flow-strip-types@^6.8.0:
|
||||
babel-plugin-transform-flow-strip-types@^6.21.0, babel-plugin-transform-flow-strip-types@^6.22.0, babel-plugin-transform-flow-strip-types@^6.5.0, babel-plugin-transform-flow-strip-types@^6.8.0:
|
||||
version "6.22.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
|
||||
dependencies:
|
||||
@ -796,7 +796,7 @@ babel-plugin-transform-object-assign@^6.5.0:
|
||||
dependencies:
|
||||
babel-runtime "^6.22.0"
|
||||
|
||||
babel-plugin-transform-object-rest-spread@^6.20.2, babel-plugin-transform-object-rest-spread@^6.5.0, babel-plugin-transform-object-rest-spread@^6.6.5, babel-plugin-transform-object-rest-spread@^6.8.0:
|
||||
babel-plugin-transform-object-rest-spread@^6.20.2, babel-plugin-transform-object-rest-spread@^6.5.0, babel-plugin-transform-object-rest-spread@^6.8.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06"
|
||||
dependencies:
|
||||
@ -837,7 +837,7 @@ babel-plugin-transform-strict-mode@^6.24.1:
|
||||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-polyfill@^6.20.0, babel-polyfill@^6.23.0:
|
||||
babel-polyfill@^6.23.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
|
||||
dependencies:
|
||||
@ -869,36 +869,7 @@ babel-preset-expo@^3.0.0:
|
||||
babel-plugin-transform-export-extensions "^6.22.0"
|
||||
babel-preset-react-native "^2.1.0"
|
||||
|
||||
babel-preset-fbjs@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-1.0.0.tgz#c972e5c9b301d4ec9e7971f4aec3e14ac017a8b0"
|
||||
dependencies:
|
||||
babel-plugin-check-es2015-constants "^6.7.2"
|
||||
babel-plugin-syntax-flow "^6.5.0"
|
||||
babel-plugin-syntax-object-rest-spread "^6.5.0"
|
||||
babel-plugin-syntax-trailing-function-commas "^6.5.0"
|
||||
babel-plugin-transform-class-properties "^6.6.0"
|
||||
babel-plugin-transform-es2015-arrow-functions "^6.5.2"
|
||||
babel-plugin-transform-es2015-block-scoped-functions "^6.6.5"
|
||||
babel-plugin-transform-es2015-block-scoping "^6.7.1"
|
||||
babel-plugin-transform-es2015-classes "^6.6.5"
|
||||
babel-plugin-transform-es2015-computed-properties "^6.6.5"
|
||||
babel-plugin-transform-es2015-destructuring "^6.6.5"
|
||||
babel-plugin-transform-es2015-for-of "^6.6.0"
|
||||
babel-plugin-transform-es2015-literals "^6.5.0"
|
||||
babel-plugin-transform-es2015-modules-commonjs "^6.7.0"
|
||||
babel-plugin-transform-es2015-object-super "^6.6.5"
|
||||
babel-plugin-transform-es2015-parameters "^6.7.0"
|
||||
babel-plugin-transform-es2015-shorthand-properties "^6.5.0"
|
||||
babel-plugin-transform-es2015-spread "^6.6.5"
|
||||
babel-plugin-transform-es2015-template-literals "^6.6.5"
|
||||
babel-plugin-transform-es3-member-expression-literals "^6.5.0"
|
||||
babel-plugin-transform-es3-property-literals "^6.5.0"
|
||||
babel-plugin-transform-flow-strip-types "^6.7.0"
|
||||
babel-plugin-transform-object-rest-spread "^6.6.5"
|
||||
object-assign "^4.0.1"
|
||||
|
||||
babel-preset-fbjs@^2.1.4:
|
||||
babel-preset-fbjs@^2.1.2, babel-preset-fbjs@^2.1.4:
|
||||
version "2.1.4"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-2.1.4.tgz#22f358e6654073acf61e47a052a777d7bccf03af"
|
||||
dependencies:
|
||||
@ -1035,7 +1006,7 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26
|
||||
lodash "^4.17.4"
|
||||
to-fast-properties "^1.0.3"
|
||||
|
||||
babylon@^6.17.0, babylon@^6.18.0:
|
||||
babylon@^6.18.0:
|
||||
version "6.18.0"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
|
||||
|
||||
@ -1178,12 +1149,6 @@ bser@1.0.2:
|
||||
dependencies:
|
||||
node-int64 "^0.4.0"
|
||||
|
||||
bser@^1.0.2:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.3.tgz#d63da19ee17330a0e260d2a34422b21a89520317"
|
||||
dependencies:
|
||||
node-int64 "^0.4.0"
|
||||
|
||||
bser@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719"
|
||||
@ -1522,7 +1487,7 @@ core-js@^1.0.0:
|
||||
version "1.2.7"
|
||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
|
||||
|
||||
core-js@^2.2.2, core-js@^2.4.0, core-js@^2.5.0:
|
||||
core-js@^2.2.2, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0:
|
||||
version "2.5.1"
|
||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.1.tgz#ae6874dc66937789b80754ff5428df66819ca50b"
|
||||
|
||||
@ -1542,13 +1507,6 @@ create-react-class@^15.5.2:
|
||||
loose-envify "^1.3.1"
|
||||
object-assign "^4.1.1"
|
||||
|
||||
cross-spawn@^3.0.1:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982"
|
||||
dependencies:
|
||||
lru-cache "^4.0.1"
|
||||
which "^1.2.9"
|
||||
|
||||
cross-spawn@^5.0.1, cross-spawn@^5.1.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
|
||||
@ -1779,7 +1737,7 @@ envinfo@^3.0.0:
|
||||
os-name "^2.0.1"
|
||||
which "^1.2.14"
|
||||
|
||||
"errno@>=0.1.1 <0.2.0-0", errno@^0.1.4:
|
||||
errno@^0.1.4:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d"
|
||||
dependencies:
|
||||
@ -1904,24 +1862,24 @@ expect@^21.0.0:
|
||||
jest-message-util "^21.0.0"
|
||||
jest-regex-util "^21.0.0"
|
||||
|
||||
expo@^21.0.1:
|
||||
version "21.0.1"
|
||||
resolved "https://registry.yarnpkg.com/expo/-/expo-21.0.1.tgz#c0e9da91041cf974a9157db6a4d9e8ac95755bc7"
|
||||
expo@^22.0.0:
|
||||
version "22.0.0"
|
||||
resolved "https://registry.yarnpkg.com/expo/-/expo-22.0.0.tgz#a83fbccd2ab0aa9b6398475c6b36e8bae9f39f25"
|
||||
dependencies:
|
||||
"@expo/vector-icons" "^5.0.0"
|
||||
babel-preset-expo "^3.0.0"
|
||||
fbemitter "^2.1.1"
|
||||
lodash.map "^4.6.0"
|
||||
lodash.zipobject "^4.1.3"
|
||||
lottie-react-native "2.2.0"
|
||||
lottie-react-native "2.2.7"
|
||||
md5-file "^3.1.1"
|
||||
pretty-format "^20.0.3"
|
||||
prop-types "^15.5.10"
|
||||
qs "^6.5.0"
|
||||
react-native-branch "2.0.0-beta.3"
|
||||
react-native-gesture-handler "1.0.0-alpha.22"
|
||||
react-native-maps "0.15.3"
|
||||
react-native-svg "5.3.0"
|
||||
react-native-gesture-handler "1.0.0-alpha.28"
|
||||
react-native-maps "0.17.0"
|
||||
react-native-svg "5.4.2"
|
||||
uuid-js "^0.7.5"
|
||||
websql "https://github.com/expo/node-websql/archive/18.0.0.tar.gz"
|
||||
|
||||
@ -2027,32 +1985,20 @@ fbemitter@^2.1.1:
|
||||
dependencies:
|
||||
fbjs "^0.8.4"
|
||||
|
||||
fbjs-scripts@^0.7.0:
|
||||
version "0.7.1"
|
||||
resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-0.7.1.tgz#4f115e218e243e3addbf0eddaac1e3c62f703fac"
|
||||
fbjs-scripts@^0.8.1:
|
||||
version "0.8.1"
|
||||
resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-0.8.1.tgz#c1c6efbecb7f008478468976b783880c2f669765"
|
||||
dependencies:
|
||||
babel-core "^6.7.2"
|
||||
babel-preset-fbjs "^1.0.0"
|
||||
core-js "^1.0.0"
|
||||
cross-spawn "^3.0.1"
|
||||
babel-preset-fbjs "^2.1.2"
|
||||
core-js "^2.4.1"
|
||||
cross-spawn "^5.1.0"
|
||||
gulp-util "^3.0.4"
|
||||
object-assign "^4.0.1"
|
||||
semver "^5.1.0"
|
||||
through2 "^2.0.0"
|
||||
|
||||
fbjs@0.8.12:
|
||||
version "0.8.12"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04"
|
||||
dependencies:
|
||||
core-js "^1.0.0"
|
||||
isomorphic-fetch "^2.1.1"
|
||||
loose-envify "^1.0.0"
|
||||
object-assign "^4.1.0"
|
||||
promise "^7.1.1"
|
||||
setimmediate "^1.0.5"
|
||||
ua-parser-js "^0.7.9"
|
||||
|
||||
fbjs@^0.8.4, fbjs@^0.8.9:
|
||||
fbjs@0.8.14, fbjs@^0.8.4, fbjs@^0.8.9:
|
||||
version "0.8.14"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.14.tgz#d1dbe2be254c35a91e09f31f9cd50a40b2a0ed1c"
|
||||
dependencies:
|
||||
@ -3013,22 +2959,14 @@ jest-diff@^21.0.0:
|
||||
jest-get-type "^21.0.0"
|
||||
pretty-format "^21.0.0"
|
||||
|
||||
jest-docblock@20.1.0-chi.1:
|
||||
version "20.1.0-chi.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-chi.1.tgz#06981ab0e59498a2492333b0c5502a82e4603207"
|
||||
|
||||
jest-docblock@20.1.0-delta.4:
|
||||
version "20.1.0-delta.4"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-delta.4.tgz#360d4f5fb702730c4136c4e71e5706188a694682"
|
||||
jest-docblock@20.1.0-echo.1:
|
||||
version "20.1.0-echo.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-echo.1.tgz#be02f43ee019f97e6b83267c746ac7b40d290fe8"
|
||||
|
||||
jest-docblock@^20.0.3:
|
||||
version "20.0.3"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.0.3.tgz#17bea984342cc33d83c50fbe1545ea0efaa44712"
|
||||
|
||||
jest-docblock@^20.1.0-chi.1:
|
||||
version "20.1.0-echo.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.1.0-echo.1.tgz#be02f43ee019f97e6b83267c746ac7b40d290fe8"
|
||||
|
||||
jest-docblock@^21.0.0:
|
||||
version "21.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.0.0.tgz#7dd57568543aec98910f749540afc15fab53a27f"
|
||||
@ -3063,36 +3001,26 @@ jest-environment-node@^21.0.0:
|
||||
jest-mock "^21.0.0"
|
||||
jest-util "^21.0.0"
|
||||
|
||||
jest-expo@^21.0.0:
|
||||
version "21.0.2"
|
||||
resolved "https://registry.yarnpkg.com/jest-expo/-/jest-expo-21.0.2.tgz#87c60deda29a9c67d5c59f24e7104aff6ce0aaee"
|
||||
jest-expo@^22.0.0:
|
||||
version "22.0.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-expo/-/jest-expo-22.0.1.tgz#029d73ad6f21a365fe55fff0c64d6cdb0046df68"
|
||||
dependencies:
|
||||
babel-jest "^20.0.3"
|
||||
jest "^20.0.4"
|
||||
react-test-renderer "16.0.0-alpha.12"
|
||||
json5 "^0.5.1"
|
||||
react-test-renderer "16.0.0-beta.5"
|
||||
|
||||
jest-get-type@^21.0.0:
|
||||
version "21.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-21.0.0.tgz#ed8667533c0a24a4feebbf492661f23abac3620b"
|
||||
|
||||
jest-haste-map@20.1.0-chi.1:
|
||||
version "20.1.0-chi.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.1.0-chi.1.tgz#db5f5f31362c76e242b40ea9a3ccfa364719cee3"
|
||||
jest-haste-map@20.1.0-echo.1:
|
||||
version "20.1.0-echo.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.1.0-echo.1.tgz#6dfd0c97bb51a68a35dd98326e04f994157dce81"
|
||||
dependencies:
|
||||
fb-watchman "^2.0.0"
|
||||
graceful-fs "^4.1.11"
|
||||
jest-docblock "^20.1.0-chi.1"
|
||||
micromatch "^2.3.11"
|
||||
sane "^2.0.0"
|
||||
worker-farm "^1.3.1"
|
||||
|
||||
jest-haste-map@20.1.0-delta.4:
|
||||
version "20.1.0-delta.4"
|
||||
resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.1.0-delta.4.tgz#12e32b297a6dd49705cacde938029fc158834006"
|
||||
dependencies:
|
||||
fb-watchman "^2.0.0"
|
||||
graceful-fs "^4.1.11"
|
||||
jest-docblock "20.1.0-delta.4"
|
||||
jest-docblock "20.1.0-echo.1"
|
||||
micromatch "^2.3.11"
|
||||
sane "^2.0.0"
|
||||
worker-farm "^1.3.1"
|
||||
@ -3717,16 +3645,16 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1:
|
||||
dependencies:
|
||||
js-tokens "^3.0.0"
|
||||
|
||||
lottie-ios@^2.0.5:
|
||||
version "2.0.5"
|
||||
resolved "https://registry.yarnpkg.com/lottie-ios/-/lottie-ios-2.0.5.tgz#3da0871e981f5621c633296eab0d9cf2340c0bcd"
|
||||
lottie-ios@^2.1.3:
|
||||
version "2.1.3"
|
||||
resolved "https://registry.yarnpkg.com/lottie-ios/-/lottie-ios-2.1.3.tgz#57b2328511a26606dc6de7a74bbdbf77f92c6aa0"
|
||||
|
||||
lottie-react-native@2.2.0:
|
||||
version "2.2.0"
|
||||
resolved "https://registry.yarnpkg.com/lottie-react-native/-/lottie-react-native-2.2.0.tgz#18196806ef6546cd3e01b24fc5a5974f02e4f017"
|
||||
lottie-react-native@2.2.7:
|
||||
version "2.2.7"
|
||||
resolved "https://registry.yarnpkg.com/lottie-react-native/-/lottie-react-native-2.2.7.tgz#d89cf6e0a093693d5fed2999a986cbcb1a090955"
|
||||
dependencies:
|
||||
invariant "^2.2.2"
|
||||
lottie-ios "^2.0.5"
|
||||
lottie-ios "^2.1.3"
|
||||
prop-types "^15.5.10"
|
||||
react-native-safe-module "^1.1.0"
|
||||
|
||||
@ -3816,9 +3744,9 @@ methods@^1.1.1, methods@~1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
|
||||
|
||||
metro-bundler@^0.11.0:
|
||||
version "0.11.0"
|
||||
resolved "https://registry.yarnpkg.com/metro-bundler/-/metro-bundler-0.11.0.tgz#ba5d2ae34943da28a37c2098047ad265c16fddf4"
|
||||
metro-bundler@^0.13.0:
|
||||
version "0.13.0"
|
||||
resolved "https://registry.yarnpkg.com/metro-bundler/-/metro-bundler-0.13.0.tgz#a1510eaecfc3db8ef46d2a936a3cc18f651e26f7"
|
||||
dependencies:
|
||||
absolute-path "^0.0.0"
|
||||
async "^2.4.0"
|
||||
@ -3829,17 +3757,17 @@ metro-bundler@^0.11.0:
|
||||
babel-preset-fbjs "^2.1.4"
|
||||
babel-preset-react-native "^2.0.0"
|
||||
babel-register "^6.24.1"
|
||||
babylon "^6.17.0"
|
||||
babylon "^6.18.0"
|
||||
chalk "^1.1.1"
|
||||
concat-stream "^1.6.0"
|
||||
core-js "^2.2.2"
|
||||
debug "^2.2.0"
|
||||
denodeify "^1.2.1"
|
||||
fbjs "0.8.12"
|
||||
fbjs "0.8.14"
|
||||
graceful-fs "^4.1.3"
|
||||
image-size "^0.6.0"
|
||||
jest-docblock "20.1.0-chi.1"
|
||||
jest-haste-map "20.1.0-chi.1"
|
||||
jest-docblock "20.1.0-echo.1"
|
||||
jest-haste-map "20.1.0-echo.1"
|
||||
json-stable-stringify "^1.0.1"
|
||||
json5 "^0.4.0"
|
||||
left-pad "^1.1.3"
|
||||
@ -4643,15 +4571,15 @@ react-native-drawer-layout@1.3.2:
|
||||
dependencies:
|
||||
react-native-dismiss-keyboard "1.0.0"
|
||||
|
||||
react-native-gesture-handler@1.0.0-alpha.22:
|
||||
version "1.0.0-alpha.22"
|
||||
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.0.0-alpha.22.tgz#96e5ae08b26a9e99d115f6e16f63d7487ef995fc"
|
||||
react-native-gesture-handler@1.0.0-alpha.28:
|
||||
version "1.0.0-alpha.28"
|
||||
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.0.0-alpha.28.tgz#198c776b7b7d299f9b03017f666a9829f996e30d"
|
||||
dependencies:
|
||||
prop-types "^15.5.10"
|
||||
|
||||
react-native-maps@0.15.3:
|
||||
version "0.15.3"
|
||||
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-0.15.3.tgz#5d9e0a8e30ecc51dc755b7a3b9d6b6ed5e2dd08c"
|
||||
react-native-maps@0.17.0:
|
||||
version "0.17.0"
|
||||
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-0.17.0.tgz#d10fa94a049432c46b6ee03fe9db84c83da65c8b"
|
||||
|
||||
react-native-safe-module@^1.1.0:
|
||||
version "1.2.0"
|
||||
@ -4678,18 +4606,18 @@ react-native-scripts@^1.3.1:
|
||||
rimraf "^2.6.1"
|
||||
xdl "44.0.0"
|
||||
|
||||
react-native-svg@5.3.0:
|
||||
version "5.3.0"
|
||||
resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-5.3.0.tgz#0d2ca98bee6726d627c2ca31617ac9c5f7d42daf"
|
||||
react-native-svg@5.4.2:
|
||||
version "5.4.2"
|
||||
resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-5.4.2.tgz#a01b4d88cda4b8ef4b2bc1adf05e11ec93a77b79"
|
||||
dependencies:
|
||||
color "^0.11.1"
|
||||
lodash "^4.16.6"
|
||||
|
||||
react-native-tab-view@^0.0.69:
|
||||
version "0.0.69"
|
||||
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.69.tgz#f52d4354a98a382f10eb5fcf61db5216c91dc7e7"
|
||||
react-native-tab-view@^0.0.70:
|
||||
version "0.0.70"
|
||||
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.70.tgz#1dd2ded32acd0cb6bfef38d26e53675db733b37b"
|
||||
dependencies:
|
||||
prop-types "^15.5.8"
|
||||
prop-types "^15.5.10"
|
||||
|
||||
react-native-vector-icons@4.1.1:
|
||||
version "4.1.1"
|
||||
@ -4699,59 +4627,38 @@ react-native-vector-icons@4.1.1:
|
||||
prop-types "^15.5.8"
|
||||
yargs "^6.3.0"
|
||||
|
||||
react-native@~0.48.4:
|
||||
version "0.48.4"
|
||||
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.48.4.tgz#f305e9fef069a5b3f6a7250ddd50f603cf30ab2d"
|
||||
react-native@^0.49.3:
|
||||
version "0.49.5"
|
||||
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.49.5.tgz#89f0fe93a8da4db2670c4bd0d81131a2ff617f27"
|
||||
dependencies:
|
||||
absolute-path "^0.0.0"
|
||||
art "^0.10.0"
|
||||
async "^2.4.0"
|
||||
babel-core "^6.24.1"
|
||||
babel-generator "^6.24.1"
|
||||
babel-plugin-external-helpers "^6.18.0"
|
||||
babel-plugin-syntax-trailing-function-commas "^6.20.0"
|
||||
babel-plugin-transform-async-to-generator "6.16.0"
|
||||
babel-plugin-transform-class-properties "^6.18.0"
|
||||
babel-plugin-transform-flow-strip-types "^6.21.0"
|
||||
babel-plugin-transform-object-rest-spread "^6.20.2"
|
||||
babel-polyfill "^6.20.0"
|
||||
babel-preset-es2015-node "^6.1.1"
|
||||
babel-preset-fbjs "^2.1.4"
|
||||
babel-preset-react-native "^2.0.0"
|
||||
babel-register "^6.24.1"
|
||||
babel-runtime "^6.23.0"
|
||||
babel-traverse "^6.24.1"
|
||||
babel-types "^6.24.1"
|
||||
babylon "^6.17.0"
|
||||
base64-js "^1.1.2"
|
||||
bser "^1.0.2"
|
||||
chalk "^1.1.1"
|
||||
commander "^2.9.0"
|
||||
concat-stream "^1.6.0"
|
||||
connect "^2.8.3"
|
||||
core-js "^2.2.2"
|
||||
create-react-class "^15.5.2"
|
||||
debug "^2.2.0"
|
||||
denodeify "^1.2.1"
|
||||
envinfo "^3.0.0"
|
||||
errno ">=0.1.1 <0.2.0-0"
|
||||
event-target-shim "^1.0.5"
|
||||
fbjs "0.8.12"
|
||||
fbjs-scripts "^0.7.0"
|
||||
form-data "^2.1.1"
|
||||
fbjs "0.8.14"
|
||||
fbjs-scripts "^0.8.1"
|
||||
fs-extra "^1.0.0"
|
||||
glob "^7.1.1"
|
||||
graceful-fs "^4.1.3"
|
||||
inquirer "^3.0.6"
|
||||
jest-haste-map "20.1.0-delta.4"
|
||||
json-stable-stringify "^1.0.1"
|
||||
json5 "^0.4.0"
|
||||
left-pad "^1.1.3"
|
||||
lodash "^4.16.6"
|
||||
merge-stream "^1.0.1"
|
||||
metro-bundler "^0.11.0"
|
||||
metro-bundler "^0.13.0"
|
||||
mime "^1.3.4"
|
||||
mime-types "2.1.11"
|
||||
minimist "^1.2.0"
|
||||
mkdirp "^0.5.1"
|
||||
node-fetch "^1.3.3"
|
||||
@ -4765,30 +4672,19 @@ react-native@~0.48.4:
|
||||
react-clone-referenced-element "^1.0.1"
|
||||
react-devtools-core "^2.5.0"
|
||||
react-timer-mixin "^0.13.2"
|
||||
react-transform-hmr "^1.0.4"
|
||||
rebound "^0.0.13"
|
||||
regenerator-runtime "^0.9.5"
|
||||
request "^2.79.0"
|
||||
rimraf "^2.5.4"
|
||||
sane "~1.4.1"
|
||||
semver "^5.0.3"
|
||||
shell-quote "1.6.1"
|
||||
source-map "^0.5.6"
|
||||
stacktrace-parser "^0.1.3"
|
||||
temp "0.8.3"
|
||||
throat "^4.1.0"
|
||||
whatwg-fetch "^1.0.0"
|
||||
wordwrap "^1.0.0"
|
||||
write-file-atomic "^1.2.0"
|
||||
ws "^1.1.0"
|
||||
xcode "^0.9.1"
|
||||
xmldoc "^0.4.0"
|
||||
xpipe "^1.0.5"
|
||||
xtend ">=4.0.0 <4.1.0-0"
|
||||
yargs "^6.4.0"
|
||||
|
||||
"react-navigation@file:../..":
|
||||
version "1.0.0-beta.13"
|
||||
version "1.0.0-beta.15"
|
||||
dependencies:
|
||||
babel-plugin-transform-define "^1.3.0"
|
||||
clamp "^1.0.1"
|
||||
@ -4796,7 +4692,7 @@ react-native@~0.48.4:
|
||||
path-to-regexp "^1.7.0"
|
||||
prop-types "^15.5.10"
|
||||
react-native-drawer-layout-polyfill "^1.3.2"
|
||||
react-native-tab-view "^0.0.69"
|
||||
react-native-tab-view "^0.0.70"
|
||||
|
||||
react-proxy@^1.1.7:
|
||||
version "1.1.8"
|
||||
@ -4823,6 +4719,13 @@ react-test-renderer@16.0.0-alpha.12:
|
||||
fbjs "^0.8.9"
|
||||
object-assign "^4.1.0"
|
||||
|
||||
react-test-renderer@16.0.0-beta.5:
|
||||
version "16.0.0-beta.5"
|
||||
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.0.0-beta.5.tgz#6169e2ea96e8d21645662b369c23239974cd1f11"
|
||||
dependencies:
|
||||
fbjs "^0.8.9"
|
||||
object-assign "^4.1.0"
|
||||
|
||||
react-timer-mixin@^0.13.2:
|
||||
version "0.13.3"
|
||||
resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz#0da8b9f807ec07dc3e854d082c737c65605b3d22"
|
||||
@ -4834,11 +4737,10 @@ react-transform-hmr@^1.0.4:
|
||||
global "^4.3.0"
|
||||
react-proxy "^1.1.7"
|
||||
|
||||
react@16.0.0-alpha.12:
|
||||
version "16.0.0-alpha.12"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0-alpha.12.tgz#8c59485281485df319b6f77682d8dd0621c08194"
|
||||
react@16.0.0-beta.5:
|
||||
version "16.0.0-beta.5"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.0.0-beta.5.tgz#b4abba9bce7db72c30633db54a148614b6574e79"
|
||||
dependencies:
|
||||
create-react-class "^15.5.2"
|
||||
fbjs "^0.8.9"
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.0"
|
||||
@ -4887,10 +4789,6 @@ readable-stream@2, readable-stream@^2.0.1, readable-stream@^2.0.5, readable-stre
|
||||
string_decoder "~1.0.3"
|
||||
util-deprecate "~1.0.1"
|
||||
|
||||
rebound@^0.0.13:
|
||||
version "0.0.13"
|
||||
resolved "https://registry.yarnpkg.com/rebound/-/rebound-0.0.13.tgz#4a225254caf7da756797b19c5817bf7a7941fac1"
|
||||
|
||||
redux-logger@^2.7.4:
|
||||
version "2.10.2"
|
||||
resolved "https://registry.yarnpkg.com/redux-logger/-/redux-logger-2.10.2.tgz#3c5a5f0a6f32577c1deadf6655f257f82c6c3937"
|
||||
@ -5127,17 +5025,6 @@ sane@^2.0.0:
|
||||
optionalDependencies:
|
||||
fsevents "^1.1.1"
|
||||
|
||||
sane@~1.4.1:
|
||||
version "1.4.1"
|
||||
resolved "https://registry.yarnpkg.com/sane/-/sane-1.4.1.tgz#88f763d74040f5f0c256b6163db399bf110ac715"
|
||||
dependencies:
|
||||
exec-sh "^0.2.0"
|
||||
fb-watchman "^1.8.0"
|
||||
minimatch "^3.0.2"
|
||||
minimist "^1.1.1"
|
||||
walker "~1.0.5"
|
||||
watch "~0.10.0"
|
||||
|
||||
sane@~1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/sane/-/sane-1.6.0.tgz#9610c452307a135d29c1fdfe2547034180c46775"
|
||||
@ -5976,14 +5863,14 @@ wordwrap@0.0.2:
|
||||
version "0.0.2"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
|
||||
|
||||
wordwrap@^1.0.0, wordwrap@~1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
|
||||
|
||||
wordwrap@~0.0.2:
|
||||
version "0.0.3"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
|
||||
|
||||
wordwrap@~1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
|
||||
|
||||
worker-farm@^1.3.1:
|
||||
version "1.5.0"
|
||||
resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.5.0.tgz#adfdf0cd40581465ed0a1f648f9735722afd5c8d"
|
||||
@ -6132,7 +6019,7 @@ xregexp@2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943"
|
||||
|
||||
"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.1, xtend@~4.0.1:
|
||||
xtend@^4.0.1, xtend@~4.0.1:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
|
||||
|
||||
|
4
flow-typed/npm/babel-cli_vx.x.x.js
vendored
4
flow-typed/npm/babel-cli_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: ebb2dc802b3f17d89ea3e6e93c7abcab
|
||||
// flow-typed version: <<STUB>>/babel-cli_v^6.24.1/flow_v0.51.0
|
||||
// flow-typed signature: f5e1319e18fa49c25ac384effc5176c7
|
||||
// flow-typed version: <<STUB>>/babel-cli_v^6.24.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/babel-core_vx.x.x.js
vendored
4
flow-typed/npm/babel-core_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 6e30dcfd3aebee9a63401dfe77e6ab4c
|
||||
// flow-typed version: <<STUB>>/babel-core_v^6.25.0/flow_v0.51.0
|
||||
// flow-typed signature: c1d5f9048bbd73cf0f4e05789a1d6f76
|
||||
// flow-typed version: <<STUB>>/babel-core_v^6.25.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/babel-eslint_vx.x.x.js
vendored
4
flow-typed/npm/babel-eslint_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 3df381be6db1c72482a9a1ec476a886b
|
||||
// flow-typed version: <<STUB>>/babel-eslint_v^7.2.3/flow_v0.51.0
|
||||
// flow-typed signature: e28a9725d1c96626d439b7d01aa87d7a
|
||||
// flow-typed version: <<STUB>>/babel-eslint_v^7.2.3/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/babel-jest_vx.x.x.js
vendored
4
flow-typed/npm/babel-jest_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: e3972eedd4181bb1001af84de2212736
|
||||
// flow-typed version: <<STUB>>/babel-jest_v^20.0.3/flow_v0.51.0
|
||||
// flow-typed signature: dfeaffdc035b358dd96c55496ae3871c
|
||||
// flow-typed version: <<STUB>>/babel-jest_v^20.0.3/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 178f6fedd6484c412deb36d2fc51b480
|
||||
// flow-typed version: <<STUB>>/babel-plugin-transform-define_v^1.3.0/flow_v0.51.0
|
||||
// flow-typed signature: a670b876b547d1b25ef0424c268358a4
|
||||
// flow-typed version: <<STUB>>/babel-plugin-transform-define_v^1.3.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/babel-preset-es2015_vx.x.x.js
vendored
4
flow-typed/npm/babel-preset-es2015_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: b565f8696c0ef8724cae3e0af43df89f
|
||||
// flow-typed version: <<STUB>>/babel-preset-es2015_v^6.24.1/flow_v0.51.0
|
||||
// flow-typed signature: 3d81e93128085d510230a17bcf740885
|
||||
// flow-typed version: <<STUB>>/babel-preset-es2015_v^6.24.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 75331221a2b438061f6290972bed3edb
|
||||
// flow-typed version: <<STUB>>/babel-preset-react-native-stage-0_v^1.0.1/flow_v0.51.0
|
||||
// flow-typed signature: 7242cc9c9c438ae2e520190a20aae5ce
|
||||
// flow-typed version: <<STUB>>/babel-preset-react-native-stage-0_v^1.0.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 57c87eb1fb3b55786881f12b604fa66a
|
||||
// flow-typed version: <<STUB>>/babel-preset-react-native-syntax_v^1.0.0/flow_v0.51.0
|
||||
// flow-typed signature: 4dbaf73edfb0720940043696b0a58ed7
|
||||
// flow-typed version: <<STUB>>/babel-preset-react-native-syntax_v^1.0.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 1ee1a81515728c2b3deee2529d4f5f46
|
||||
// flow-typed version: <<STUB>>/babel-preset-react-native_v^2.1.0/flow_v0.51.0
|
||||
// flow-typed signature: 48213b3a96834e8c0012431509c578e1
|
||||
// flow-typed version: <<STUB>>/babel-preset-react-native_v^2.1.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/babel-preset-react_vx.x.x.js
vendored
4
flow-typed/npm/babel-preset-react_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: d4e60d73a0307350eb745d441f32a711
|
||||
// flow-typed version: <<STUB>>/babel-preset-react_v^6.24.1/flow_v0.51.0
|
||||
// flow-typed signature: dcb3c3b6df7fc88f964d98ac91df65d0
|
||||
// flow-typed version: <<STUB>>/babel-preset-react_v^6.24.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 535d4d7f9913de1766467c8d1ad73061
|
||||
// flow-typed version: <<STUB>>/babel-preset-stage-1_v^6.24.1/flow_v0.51.0
|
||||
// flow-typed signature: eabcd01f0cbef57bf53e1d6e8227223a
|
||||
// flow-typed version: <<STUB>>/babel-preset-stage-1_v^6.24.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/clamp_vx.x.x.js
vendored
4
flow-typed/npm/clamp_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 18f129114a0c79d2a0a6e3ac489248d9
|
||||
// flow-typed version: <<STUB>>/clamp_v^1.0.1/flow_v0.51.0
|
||||
// flow-typed signature: 5d53c1dc058e8864450c1d7f101839c4
|
||||
// flow-typed version: <<STUB>>/clamp_v^1.0.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/codecov_vx.x.x.js
vendored
4
flow-typed/npm/codecov_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: d484c74248f66d84a575e69f09d5f2b7
|
||||
// flow-typed version: <<STUB>>/codecov_v^2.2.0/flow_v0.51.0
|
||||
// flow-typed signature: 723fd5bb783f96ff5e5ffbe070204b69
|
||||
// flow-typed version: <<STUB>>/codecov_v^2.2.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
11
flow-typed/npm/eslint-config-prettier_vx.x.x.js
vendored
11
flow-typed/npm/eslint-config-prettier_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: b79def5c90aaafa63b6560804fdc80b5
|
||||
// flow-typed version: <<STUB>>/eslint-config-prettier_v^2.3.0/flow_v0.51.0
|
||||
// flow-typed signature: 3fdf20db0f0f2b9358b75976f3cc4b73
|
||||
// flow-typed version: <<STUB>>/eslint-config-prettier_v^2.3.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -38,6 +38,10 @@ declare module 'eslint-config-prettier/react' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-config-prettier/standard' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
// Filename aliases
|
||||
declare module 'eslint-config-prettier/bin/cli.js' {
|
||||
declare module.exports: $Exports<'eslint-config-prettier/bin/cli'>;
|
||||
@ -57,3 +61,6 @@ declare module 'eslint-config-prettier/index.js' {
|
||||
declare module 'eslint-config-prettier/react.js' {
|
||||
declare module.exports: $Exports<'eslint-config-prettier/react'>;
|
||||
}
|
||||
declare module 'eslint-config-prettier/standard.js' {
|
||||
declare module.exports: $Exports<'eslint-config-prettier/standard'>;
|
||||
}
|
||||
|
18
flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js
vendored
18
flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 82f7f386a3b74932e476dba0641a83bf
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.35.0/flow_v0.51.0
|
||||
// flow-typed signature: ffb85fc45aaaa467e906526413920334
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.35.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -50,6 +50,10 @@ declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -58,6 +62,10 @@ declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation'
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -216,12 +224,18 @@ declare module 'eslint-plugin-flowtype/dist/rules/genericSpacing.js' {
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noDupeKeys.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noDupeKeys'>;
|
||||
}
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noMutableArray.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noMutableArray'>;
|
||||
}
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noPrimitiveConstructorTypes'>;
|
||||
}
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noTypesMissingFileAnnotation'>;
|
||||
}
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noUnusedExpressions.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noUnusedExpressions'>;
|
||||
}
|
||||
declare module 'eslint-plugin-flowtype/dist/rules/noWeakTypes.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-flowtype/dist/rules/noWeakTypes'>;
|
||||
}
|
||||
|
11
flow-typed/npm/eslint-plugin-import_vx.x.x.js
vendored
11
flow-typed/npm/eslint-plugin-import_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 4ea0ace5576440cc99923f5efa67b4e3
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.7.0/flow_v0.51.0
|
||||
// flow-typed signature: 078bf90e28dc2b5eb0a99a3e67d45a2b
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.7.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -78,6 +78,10 @@ declare module 'eslint-plugin-import/lib/rules/export' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-import/lib/rules/exports-last' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-import/lib/rules/extensions' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -241,6 +245,9 @@ declare module 'eslint-plugin-import/lib/rules/default.js' {
|
||||
declare module 'eslint-plugin-import/lib/rules/export.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/export'>;
|
||||
}
|
||||
declare module 'eslint-plugin-import/lib/rules/exports-last.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/exports-last'>;
|
||||
}
|
||||
declare module 'eslint-plugin-import/lib/rules/extensions.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/extensions'>;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 9557f2195b95aea9e9642793c6b21c5a
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^6.0.2/flow_v0.51.0
|
||||
// flow-typed signature: 6aa89ee7e52f12858095a7a2ae30aa8b
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^6.0.2/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 7b7630de521fce26208f7c16dbb0455b
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-prettier_v^2.1.2/flow_v0.51.0
|
||||
// flow-typed signature: 17b81163291b37cac179f2554c576bce
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-prettier_v^2.1.2/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
32
flow-typed/npm/eslint-plugin-react_vx.x.x.js
vendored
32
flow-typed/npm/eslint-plugin-react_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: ea6ca68500e4e9e0009cc35f69695016
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-react_v^7.1.0/flow_v0.51.0
|
||||
// flow-typed signature: 08153f43b62f7d0ea16d06b2d5778ded
|
||||
// flow-typed version: <<STUB>>/eslint-plugin-react_v^7.1.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -22,6 +22,10 @@ declare module 'eslint-plugin-react' {
|
||||
* require those files directly. Feel free to delete any files that aren't
|
||||
* needed.
|
||||
*/
|
||||
declare module 'eslint-plugin-react/lib/rules/boolean-prop-naming' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-react/lib/rules/default-props-match-prop-types' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -58,6 +62,10 @@ declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -206,6 +214,10 @@ declare module 'eslint-plugin-react/lib/rules/no-string-refs' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-react/lib/rules/no-typos' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -218,6 +230,10 @@ declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-react/lib/rules/no-unused-state' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint-plugin-react/lib/rules/no-will-update-set-state' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -305,6 +321,9 @@ declare module 'eslint-plugin-react/index' {
|
||||
declare module 'eslint-plugin-react/index.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/boolean-prop-naming.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/boolean-prop-naming'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/default-props-match-prop-types.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/default-props-match-prop-types'>;
|
||||
}
|
||||
@ -332,6 +351,9 @@ declare module 'eslint-plugin-react/lib/rules/jsx-closing-bracket-location.js' {
|
||||
declare module 'eslint-plugin-react/lib/rules/jsx-closing-tag-location.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-closing-tag-location'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-brace-presence'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/jsx-curly-spacing.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/jsx-curly-spacing'>;
|
||||
}
|
||||
@ -443,6 +465,9 @@ declare module 'eslint-plugin-react/lib/rules/no-set-state.js' {
|
||||
declare module 'eslint-plugin-react/lib/rules/no-string-refs.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-string-refs'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/no-typos.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-typos'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/no-unescaped-entities.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unescaped-entities'>;
|
||||
}
|
||||
@ -452,6 +477,9 @@ declare module 'eslint-plugin-react/lib/rules/no-unknown-property.js' {
|
||||
declare module 'eslint-plugin-react/lib/rules/no-unused-prop-types.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-prop-types'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/no-unused-state.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-unused-state'>;
|
||||
}
|
||||
declare module 'eslint-plugin-react/lib/rules/no-will-update-set-state.js' {
|
||||
declare module.exports: $Exports<'eslint-plugin-react/lib/rules/no-will-update-set-state'>;
|
||||
}
|
||||
|
52
flow-typed/npm/eslint_vx.x.x.js
vendored
52
flow-typed/npm/eslint_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 173e2e16c3bec8bd7d66b3dfa0c8924d
|
||||
// flow-typed version: <<STUB>>/eslint_v^4.2.0/flow_v0.51.0
|
||||
// flow-typed signature: af990aba8d35ceb65d038fd11a7de89a
|
||||
// flow-typed version: <<STUB>>/eslint_v^4.2.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -214,7 +214,7 @@ declare module 'eslint/lib/options' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/rule-context' {
|
||||
declare module 'eslint/lib/report-translator' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
@ -358,6 +358,10 @@ declare module 'eslint/lib/rules/func-style' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/rules/function-paren-newline' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/rules/generator-star-spacing' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -430,6 +434,10 @@ declare module 'eslint/lib/rules/lines-around-directive' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/rules/lines-between-class-members' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/rules/max-depth' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -458,6 +466,10 @@ declare module 'eslint/lib/rules/max-statements' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/rules/multiline-comment-style' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/rules/multiline-ternary' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -1234,10 +1246,6 @@ declare module 'eslint/lib/rules/yoda' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/testers/event-generator-tester' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/testers/rule-tester' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -1302,6 +1310,10 @@ declare module 'eslint/lib/util/ajv' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/util/apply-disable-directives' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/util/fix-tracker' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -1346,6 +1358,10 @@ declare module 'eslint/lib/util/rule-fixer' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/util/safe-emitter' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'eslint/lib/util/source-code-fixer' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -1511,8 +1527,8 @@ declare module 'eslint/lib/logging.js' {
|
||||
declare module 'eslint/lib/options.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/options'>;
|
||||
}
|
||||
declare module 'eslint/lib/rule-context.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rule-context'>;
|
||||
declare module 'eslint/lib/report-translator.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/report-translator'>;
|
||||
}
|
||||
declare module 'eslint/lib/rules.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules'>;
|
||||
@ -1619,6 +1635,9 @@ declare module 'eslint/lib/rules/func-names.js' {
|
||||
declare module 'eslint/lib/rules/func-style.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/func-style'>;
|
||||
}
|
||||
declare module 'eslint/lib/rules/function-paren-newline.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/function-paren-newline'>;
|
||||
}
|
||||
declare module 'eslint/lib/rules/generator-star-spacing.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/generator-star-spacing'>;
|
||||
}
|
||||
@ -1673,6 +1692,9 @@ declare module 'eslint/lib/rules/lines-around-comment.js' {
|
||||
declare module 'eslint/lib/rules/lines-around-directive.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/lines-around-directive'>;
|
||||
}
|
||||
declare module 'eslint/lib/rules/lines-between-class-members.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/lines-between-class-members'>;
|
||||
}
|
||||
declare module 'eslint/lib/rules/max-depth.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/max-depth'>;
|
||||
}
|
||||
@ -1694,6 +1716,9 @@ declare module 'eslint/lib/rules/max-statements-per-line.js' {
|
||||
declare module 'eslint/lib/rules/max-statements.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/max-statements'>;
|
||||
}
|
||||
declare module 'eslint/lib/rules/multiline-comment-style.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/multiline-comment-style'>;
|
||||
}
|
||||
declare module 'eslint/lib/rules/multiline-ternary.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/multiline-ternary'>;
|
||||
}
|
||||
@ -2276,9 +2301,6 @@ declare module 'eslint/lib/rules/yield-star-spacing.js' {
|
||||
declare module 'eslint/lib/rules/yoda.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/rules/yoda'>;
|
||||
}
|
||||
declare module 'eslint/lib/testers/event-generator-tester.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/testers/event-generator-tester'>;
|
||||
}
|
||||
declare module 'eslint/lib/testers/rule-tester.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/testers/rule-tester'>;
|
||||
}
|
||||
@ -2327,6 +2349,9 @@ declare module 'eslint/lib/token-store/utils.js' {
|
||||
declare module 'eslint/lib/util/ajv.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/util/ajv'>;
|
||||
}
|
||||
declare module 'eslint/lib/util/apply-disable-directives.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/util/apply-disable-directives'>;
|
||||
}
|
||||
declare module 'eslint/lib/util/fix-tracker.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/util/fix-tracker'>;
|
||||
}
|
||||
@ -2360,6 +2385,9 @@ declare module 'eslint/lib/util/patterns/letters.js' {
|
||||
declare module 'eslint/lib/util/rule-fixer.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/util/rule-fixer'>;
|
||||
}
|
||||
declare module 'eslint/lib/util/safe-emitter.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/util/safe-emitter'>;
|
||||
}
|
||||
declare module 'eslint/lib/util/source-code-fixer.js' {
|
||||
declare module.exports: $Exports<'eslint/lib/util/source-code-fixer'>;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 2420f6e61267a4a2cc309c97710f2b13
|
||||
// flow-typed version: <<STUB>>/hoist-non-react-statics_v^2.2.0/flow_v0.51.0
|
||||
// flow-typed signature: ca1871262f8bc63c9a045e96cec914e8
|
||||
// flow-typed version: <<STUB>>/hoist-non-react-statics_v^2.2.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/husky_vx.x.x.js
vendored
4
flow-typed/npm/husky_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 4fdb4ded90c07a2f76c9021de4d800b4
|
||||
// flow-typed version: <<STUB>>/husky_v^0.14.3/flow_v0.51.0
|
||||
// flow-typed signature: 930164f24ba609d4a0838e95218c138a
|
||||
// flow-typed version: <<STUB>>/husky_v^0.14.3/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/lint-staged_vx.x.x.js
vendored
4
flow-typed/npm/lint-staged_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: f2a5691cc957c85ee168949d07ea8aee
|
||||
// flow-typed version: <<STUB>>/lint-staged_v^4.2.1/flow_v0.51.0
|
||||
// flow-typed signature: 84a9a1cd711dae71521c0f49f8414eb9
|
||||
// flow-typed version: <<STUB>>/lint-staged_v^4.2.1/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/path-to-regexp_vx.x.x.js
vendored
4
flow-typed/npm/path-to-regexp_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 19d6c23aa4afe0e737c2b58b9a43076d
|
||||
// flow-typed version: <<STUB>>/path-to-regexp_v^1.7.0/flow_v0.51.0
|
||||
// flow-typed signature: 01d476f3be5ebe6f8e91e00282cf8bec
|
||||
// flow-typed version: <<STUB>>/path-to-regexp_v^1.7.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
4
flow-typed/npm/prettier-eslint_vx.x.x.js
vendored
4
flow-typed/npm/prettier-eslint_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: b522b764e6e679e38f1a5d3048a967a9
|
||||
// flow-typed version: <<STUB>>/prettier-eslint_v^6.4.2/flow_v0.51.0
|
||||
// flow-typed signature: b7f36edc7066ed49af8665f610d99eaa
|
||||
// flow-typed version: <<STUB>>/prettier-eslint_v^6.4.2/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
11
flow-typed/npm/prettier_vx.x.x.js
vendored
11
flow-typed/npm/prettier_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 059378722069c524e383caa65a0e6772
|
||||
// flow-typed version: <<STUB>>/prettier_v^1.5.3/flow_v0.51.0
|
||||
// flow-typed signature: 38fc6a38fb3db6326f4376e1a0a9b663
|
||||
// flow-typed version: <<STUB>>/prettier_v^1.5.3/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -38,10 +38,6 @@ declare module 'prettier/parser-graphql' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'prettier/parser-json' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'prettier/parser-parse5' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -73,9 +69,6 @@ declare module 'prettier/parser-flow.js' {
|
||||
declare module 'prettier/parser-graphql.js' {
|
||||
declare module.exports: $Exports<'prettier/parser-graphql'>;
|
||||
}
|
||||
declare module 'prettier/parser-json.js' {
|
||||
declare module.exports: $Exports<'prettier/parser-json'>;
|
||||
}
|
||||
declare module 'prettier/parser-parse5.js' {
|
||||
declare module.exports: $Exports<'prettier/parser-parse5'>;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: f77896c6d35da366703c12c9cb94c482
|
||||
// flow-typed version: <<STUB>>/react-native-drawer-layout-polyfill_v^1.3.2/flow_v0.51.0
|
||||
// flow-typed signature: 955a754c9cf0044960be869a6720689d
|
||||
// flow-typed version: <<STUB>>/react-native-drawer-layout-polyfill_v^1.3.2/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 86fb6e16c48818a43325691bf8be9516
|
||||
// flow-typed version: <<STUB>>/react-native-tab-view_v^0.0.69/flow_v0.51.0
|
||||
// flow-typed signature: 9fca0611af059dd567467143c5d57f57
|
||||
// flow-typed version: <<STUB>>/react-native-tab-view_v^0.0.70/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
193
flow-typed/npm/react-native-vector-icons_vx.x.x.js
vendored
193
flow-typed/npm/react-native-vector-icons_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 788d246453dc8d5854d8afdd311e8b8e
|
||||
// flow-typed version: <<STUB>>/react-native-vector-icons_v^4.2.0/flow_v0.51.0
|
||||
// flow-typed signature: d610eea51b98a43ddc07b31057f40497
|
||||
// flow-typed version: <<STUB>>/react-native-vector-icons_v^4.2.0/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -22,6 +22,102 @@ declare module 'react-native-vector-icons' {
|
||||
* require those files directly. Feel free to delete any files that aren't
|
||||
* needed.
|
||||
*/
|
||||
declare module 'react-native-vector-icons/bin/generate-icon' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/bin/generate-material-icons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/Entypo' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/EvilIcons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/Feather' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/FontAwesome' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/Foundation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/index' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/Ionicons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/create-icon-set-from-fontello' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/create-icon-set-from-icomoon' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/create-icon-set' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/generate-icon-set-from-css' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/icon-button' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/react-native' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/react-native.osx' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/tab-bar-item-ios' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/lib/toolbar-android' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/MaterialCommunityIcons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/MaterialIcons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/Octicons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/RNIMigration' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/SimpleLineIcons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/dist/Zocial' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/Entypo' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -30,6 +126,10 @@ declare module 'react-native-vector-icons/EvilIcons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/Feather' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/FontAwesome' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -38,14 +138,6 @@ declare module 'react-native-vector-icons/Foundation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/generate-icon' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/generate-material-icons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native-vector-icons/Ionicons' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -111,24 +203,93 @@ declare module 'react-native-vector-icons/Zocial' {
|
||||
}
|
||||
|
||||
// Filename aliases
|
||||
declare module 'react-native-vector-icons/bin/generate-icon.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/bin/generate-icon'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/bin/generate-material-icons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/bin/generate-material-icons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/Entypo.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/Entypo'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/EvilIcons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/EvilIcons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/Feather.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/Feather'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/FontAwesome.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/FontAwesome'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/Foundation.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/Foundation'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/index.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/index'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/Ionicons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/Ionicons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/create-icon-set-from-fontello.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/create-icon-set-from-fontello'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/create-icon-set-from-icomoon.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/create-icon-set-from-icomoon'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/create-icon-set.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/create-icon-set'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/generate-icon-set-from-css.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/generate-icon-set-from-css'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/icon-button.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/icon-button'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/react-native.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/react-native'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/react-native.osx.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/react-native.osx'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/tab-bar-item-ios.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/tab-bar-item-ios'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/lib/toolbar-android.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/lib/toolbar-android'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/MaterialCommunityIcons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/MaterialCommunityIcons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/MaterialIcons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/MaterialIcons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/Octicons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/Octicons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/RNIMigration.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/RNIMigration'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/SimpleLineIcons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/SimpleLineIcons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/dist/Zocial.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/dist/Zocial'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/Entypo.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/Entypo'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/EvilIcons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/EvilIcons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/Feather.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/Feather'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/FontAwesome.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/FontAwesome'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/Foundation.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/Foundation'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/generate-icon.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/generate-icon'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/generate-material-icons.js' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons/generate-material-icons'>;
|
||||
}
|
||||
declare module 'react-native-vector-icons/index' {
|
||||
declare module.exports: $Exports<'react-native-vector-icons'>;
|
||||
}
|
||||
|
263
flow-typed/npm/react-native_vx.x.x.js
vendored
263
flow-typed/npm/react-native_vx.x.x.js
vendored
@ -1,5 +1,5 @@
|
||||
// flow-typed signature: 73d52653d8777e3d7f5e48e7be6ade40
|
||||
// flow-typed version: <<STUB>>/react-native_v^0.48.3/flow_v0.51.0
|
||||
// flow-typed signature: d7b1ac027339315e21d704dd29398b58
|
||||
// flow-typed version: <<STUB>>/react-native_v^0.49.3/flow_v0.53.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
@ -54,10 +54,6 @@ declare module 'react-native/flow/prop-types' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/flow/react' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/flow/Set' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -158,6 +154,10 @@ declare module 'react-native/Libraries/Animated/src/Animated' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/AnimatedEvent' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/AnimatedImplementation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -166,19 +166,91 @@ declare module 'react-native/Libraries/Animated/src/AnimatedWeb' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/animations/Animation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/animations/DecayAnimation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/animations/SpringAnimation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/animations/TimingAnimation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/bezier' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/createAnimatedComponent' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/Easing' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/Interpolation' {
|
||||
declare module 'react-native/Libraries/Animated/src/NativeAnimatedHelper' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/NativeAnimatedHelper' {
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedAddition' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedDiffClamp' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedDivision' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedInterpolation' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedModulo' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedMultiplication' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedNode' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedProps' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedStyle' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedTracking' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedTransform' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedValue' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedValueXY' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedWithChildren' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
@ -298,6 +370,10 @@ declare module 'react-native/Libraries/Components/Button' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Components/CheckBox/CheckBox' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Components/Clipboard/Clipboard' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -650,6 +726,10 @@ declare module 'react-native/Libraries/Core/InitializeCore' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Core/ReactNativeVersion' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Core/Timers/JSTimers' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -1126,6 +1206,10 @@ declare module 'react-native/Libraries/ReactNative/queryLayoutByID' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/ReactNative/ReactNativeFeatureFlags' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/ReactNative/renderApplication' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -1194,10 +1278,6 @@ declare module 'react-native/Libraries/Renderer/shims/ReactNativeComponentTree'
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Renderer/shims/ReactNativeFeatureFlags' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/Libraries/Renderer/shims/ReactNativePropRegistry' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -2406,6 +2486,10 @@ declare module 'react-native/local-cli/server/util/webSocketProxy' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/App' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -2414,14 +2498,6 @@ declare module 'react-native/local-cli/templates/HelloNavigation/components/List
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/index.android' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/index.ios' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/lib/Backend' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -2438,10 +2514,6 @@ declare module 'react-native/local-cli/templates/HelloNavigation/views/HomeScree
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/views/MainNavigator' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -2454,19 +2526,15 @@ declare module 'react-native/local-cli/templates/HelloNavigation/views/welcome/W
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/__tests__/index.android' {
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/__tests__/App' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/__tests__/index.ios' {
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/App' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/index.android' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/index.ios' {
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/index' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
@ -2474,10 +2542,18 @@ declare module 'react-native/local-cli/upgrade/upgrade' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/util/__mocks__/fs' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/util/__mocks__/log' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/util/__tests__/findSymlinkedModules-test' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/util/assertRequiredOptions' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -2490,6 +2566,14 @@ declare module 'react-native/local-cli/util/copyAndReplace' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/util/findReactNativeScripts' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/util/findSymlinkedModules' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module 'react-native/local-cli/util/findSymlinksPaths' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
@ -2667,9 +2751,6 @@ declare module 'react-native/flow/Promise.js' {
|
||||
declare module 'react-native/flow/prop-types.js' {
|
||||
declare module.exports: $Exports<'react-native/flow/prop-types'>;
|
||||
}
|
||||
declare module 'react-native/flow/react.js' {
|
||||
declare module.exports: $Exports<'react-native/flow/react'>;
|
||||
}
|
||||
declare module 'react-native/flow/Set.js' {
|
||||
declare module.exports: $Exports<'react-native/flow/Set'>;
|
||||
}
|
||||
@ -2745,24 +2826,81 @@ declare module 'react-native/Libraries/Animated/src/__tests__/Interpolation-test
|
||||
declare module 'react-native/Libraries/Animated/src/Animated.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/Animated'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/AnimatedEvent.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/AnimatedEvent'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/AnimatedImplementation.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/AnimatedImplementation'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/AnimatedWeb.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/AnimatedWeb'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/animations/Animation.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/animations/Animation'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/animations/DecayAnimation.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/animations/DecayAnimation'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/animations/SpringAnimation.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/animations/SpringAnimation'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/animations/TimingAnimation.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/animations/TimingAnimation'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/bezier.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/bezier'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/createAnimatedComponent.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/createAnimatedComponent'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/Easing.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/Easing'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/Interpolation.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/Interpolation'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/NativeAnimatedHelper.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/NativeAnimatedHelper'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedAddition.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedAddition'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedDiffClamp.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedDiffClamp'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedDivision.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedDivision'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedInterpolation.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedInterpolation'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedModulo.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedModulo'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedMultiplication.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedMultiplication'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedNode.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedNode'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedProps.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedProps'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedStyle.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedStyle'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedTracking.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedTracking'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedTransform.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedTransform'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedValue.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedValue'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedValueXY.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedValueXY'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/nodes/AnimatedWithChildren.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/nodes/AnimatedWithChildren'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Animated/src/polyfills/flattenStyle.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Animated/src/polyfills/flattenStyle'>;
|
||||
}
|
||||
@ -2850,6 +2988,9 @@ declare module 'react-native/Libraries/Components/AppleTV/TVViewPropTypes.js' {
|
||||
declare module 'react-native/Libraries/Components/Button.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Components/Button'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Components/CheckBox/CheckBox.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Components/CheckBox/CheckBox'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Components/Clipboard/Clipboard.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Components/Clipboard/Clipboard'>;
|
||||
}
|
||||
@ -3114,6 +3255,9 @@ declare module 'react-native/Libraries/Core/ExceptionsManager.js' {
|
||||
declare module 'react-native/Libraries/Core/InitializeCore.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Core/InitializeCore'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Core/ReactNativeVersion.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Core/ReactNativeVersion'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Core/Timers/JSTimers.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Core/Timers/JSTimers'>;
|
||||
}
|
||||
@ -3471,6 +3615,9 @@ declare module 'react-native/Libraries/ReactNative/I18nManager.js' {
|
||||
declare module 'react-native/Libraries/ReactNative/queryLayoutByID.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/ReactNative/queryLayoutByID'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/ReactNative/ReactNativeFeatureFlags.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/ReactNative/ReactNativeFeatureFlags'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/ReactNative/renderApplication.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/ReactNative/renderApplication'>;
|
||||
}
|
||||
@ -3522,9 +3669,6 @@ declare module 'react-native/Libraries/Renderer/shims/ReactNative.js' {
|
||||
declare module 'react-native/Libraries/Renderer/shims/ReactNativeComponentTree.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Renderer/shims/ReactNativeComponentTree'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Renderer/shims/ReactNativeFeatureFlags.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Renderer/shims/ReactNativeFeatureFlags'>;
|
||||
}
|
||||
declare module 'react-native/Libraries/Renderer/shims/ReactNativePropRegistry.js' {
|
||||
declare module.exports: $Exports<'react-native/Libraries/Renderer/shims/ReactNativePropRegistry'>;
|
||||
}
|
||||
@ -4431,18 +4575,15 @@ declare module 'react-native/local-cli/server/util/messageSocket.js' {
|
||||
declare module 'react-native/local-cli/server/util/webSocketProxy.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/server/util/webSocketProxy'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/App.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/App'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/components/ListItem.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/components/ListItem'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/index.android.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/index.android'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/index.ios.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/index.ios'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/lib/Backend.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/lib/Backend'>;
|
||||
}
|
||||
@ -4455,9 +4596,6 @@ declare module 'react-native/local-cli/templates/HelloNavigation/views/chat/Chat
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/views/HomeScreenTabNavigator.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/views/HomeScreenTabNavigator'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/views/MainNavigator'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen'>;
|
||||
}
|
||||
@ -4467,24 +4605,27 @@ declare module 'react-native/local-cli/templates/HelloNavigation/views/welcome/W
|
||||
declare module 'react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/__tests__/index.android.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloWorld/__tests__/index.android'>;
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/__tests__/App.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloWorld/__tests__/App'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/__tests__/index.ios.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloWorld/__tests__/index.ios'>;
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/App.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloWorld/App'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/index.android.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloWorld/index.android'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/index.ios.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloWorld/index.ios'>;
|
||||
declare module 'react-native/local-cli/templates/HelloWorld/index.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/templates/HelloWorld/index'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/upgrade/upgrade.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/upgrade/upgrade'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/util/__mocks__/fs.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/__mocks__/fs'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/util/__mocks__/log.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/__mocks__/log'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/util/__tests__/findSymlinkedModules-test.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/__tests__/findSymlinkedModules-test'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/util/assertRequiredOptions.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/assertRequiredOptions'>;
|
||||
}
|
||||
@ -4494,6 +4635,12 @@ declare module 'react-native/local-cli/util/Config.js' {
|
||||
declare module 'react-native/local-cli/util/copyAndReplace.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/copyAndReplace'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/util/findReactNativeScripts.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/findReactNativeScripts'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/util/findSymlinkedModules.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/findSymlinkedModules'>;
|
||||
}
|
||||
declare module 'react-native/local-cli/util/findSymlinksPaths.js' {
|
||||
declare module.exports: $Exports<'react-native/local-cli/util/findSymlinksPaths'>;
|
||||
}
|
||||
|
1756
flow-typed/npm/react-test-renderer_vx.x.x.js
vendored
1756
flow-typed/npm/react-test-renderer_vx.x.x.js
vendored
File diff suppressed because it is too large
Load Diff
@ -53,7 +53,7 @@
|
||||
"path-to-regexp": "^1.7.0",
|
||||
"prop-types": "^15.5.10",
|
||||
"react-native-drawer-layout-polyfill": "^1.3.2",
|
||||
"react-native-tab-view": "^0.0.69"
|
||||
"react-native-tab-view": "^0.0.70"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.24.1",
|
||||
@ -74,14 +74,14 @@
|
||||
"eslint-plugin-jsx-a11y": "^6.0.2",
|
||||
"eslint-plugin-prettier": "^2.1.2",
|
||||
"eslint-plugin-react": "^7.1.0",
|
||||
"flow-bin": "^0.51.0",
|
||||
"flow-bin": "0.53.0",
|
||||
"husky": "^0.14.3",
|
||||
"jest": "^20.0.4",
|
||||
"lint-staged": "^4.2.1",
|
||||
"prettier": "^1.5.3",
|
||||
"prettier-eslint": "^6.4.2",
|
||||
"react": "16.0.0-alpha.12",
|
||||
"react-native": "^0.48.4",
|
||||
"react": "16.0.0-beta.5",
|
||||
"react-native": "^0.49.3",
|
||||
"react-native-vector-icons": "^4.2.0",
|
||||
"react-test-renderer": "^16.0.0"
|
||||
},
|
||||
|
@ -2,7 +2,18 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import type { NavigationAction } from './TypeDefinition';
|
||||
import type {
|
||||
NavigationAction,
|
||||
PossiblyDeprecatedNavigationAction,
|
||||
DeprecatedNavigationNavigateAction,
|
||||
NavigationInitAction,
|
||||
NavigationNavigateAction,
|
||||
NavigationBackAction,
|
||||
NavigationSetParamsAction,
|
||||
NavigationResetAction,
|
||||
NavigationUriAction,
|
||||
NavigationParams,
|
||||
} from './TypeDefinition';
|
||||
|
||||
const BACK = 'Navigation/BACK';
|
||||
const INIT = 'Navigation/INIT';
|
||||
@ -11,49 +22,118 @@ const RESET = 'Navigation/RESET';
|
||||
const SET_PARAMS = 'Navigation/SET_PARAMS';
|
||||
const URI = 'Navigation/URI';
|
||||
|
||||
const createAction = (type: string) => (payload: Object = {}) => ({
|
||||
type,
|
||||
...payload,
|
||||
const back = (payload: { key?: ?string } = {}): NavigationBackAction => ({
|
||||
type: BACK,
|
||||
key: payload.key,
|
||||
});
|
||||
const init = (
|
||||
payload: { params?: NavigationParams } = {}
|
||||
): NavigationInitAction => {
|
||||
const action: NavigationInitAction = {
|
||||
type: INIT,
|
||||
};
|
||||
if (payload.params) {
|
||||
action.params = payload.params;
|
||||
}
|
||||
return action;
|
||||
};
|
||||
const navigate = (payload: {
|
||||
routeName: string,
|
||||
params?: ?NavigationParams,
|
||||
action?: ?NavigationNavigateAction,
|
||||
}): NavigationNavigateAction => {
|
||||
const action: NavigationNavigateAction = {
|
||||
type: NAVIGATE,
|
||||
routeName: payload.routeName,
|
||||
};
|
||||
if (payload.params) {
|
||||
action.params = payload.params;
|
||||
}
|
||||
if (payload.action) {
|
||||
action.action = payload.action;
|
||||
}
|
||||
return action;
|
||||
};
|
||||
const reset = (payload: {
|
||||
index: number,
|
||||
key?: ?string,
|
||||
actions: Array<NavigationNavigateAction>,
|
||||
}): NavigationResetAction => ({
|
||||
type: RESET,
|
||||
index: payload.index,
|
||||
key: payload.key,
|
||||
actions: payload.actions,
|
||||
});
|
||||
const setParams = (payload: {
|
||||
key: string,
|
||||
params: NavigationParams,
|
||||
}): NavigationSetParamsAction => ({
|
||||
type: SET_PARAMS,
|
||||
key: payload.key,
|
||||
params: payload.params,
|
||||
});
|
||||
const uri = (payload: { uri: string }): NavigationUriAction => ({
|
||||
type: URI,
|
||||
uri: payload.uri,
|
||||
});
|
||||
|
||||
const back = createAction(BACK);
|
||||
const init = createAction(INIT);
|
||||
const navigate = createAction(NAVIGATE);
|
||||
const reset = createAction(RESET);
|
||||
const setParams = createAction(SET_PARAMS);
|
||||
const uri = createAction(URI);
|
||||
|
||||
const deprecatedActionMap = {
|
||||
Back: BACK,
|
||||
Init: INIT,
|
||||
Navigate: NAVIGATE,
|
||||
Reset: RESET,
|
||||
SetParams: SET_PARAMS,
|
||||
Uri: URI,
|
||||
const mapDeprecatedNavigateAction = (
|
||||
action: NavigationNavigateAction | DeprecatedNavigationNavigateAction
|
||||
): NavigationNavigateAction => {
|
||||
if (action.type === 'Navigate') {
|
||||
const payload: Object = {
|
||||
routeName: action.routeName,
|
||||
params: action.params,
|
||||
};
|
||||
if (action.action) {
|
||||
payload.action = mapDeprecatedNavigateAction(action.action);
|
||||
}
|
||||
return navigate(payload);
|
||||
}
|
||||
return action;
|
||||
};
|
||||
|
||||
const mapDeprecatedActionAndWarn = (action: Object) => {
|
||||
const mappedType = deprecatedActionMap[action.type];
|
||||
if (!mappedType) {
|
||||
return action;
|
||||
const mapDeprecatedAction = (
|
||||
action: PossiblyDeprecatedNavigationAction
|
||||
): NavigationAction => {
|
||||
if (action.type === 'Back') {
|
||||
return back(action);
|
||||
} else if (action.type === 'Init') {
|
||||
return init(action);
|
||||
} else if (action.type === 'Navigate') {
|
||||
return mapDeprecatedNavigateAction(action);
|
||||
} else if (action.type === 'Reset') {
|
||||
return reset({
|
||||
index: action.index,
|
||||
key: action.key,
|
||||
actions: action.actions.map(mapDeprecatedNavigateAction),
|
||||
});
|
||||
} else if (action.type === 'SetParams') {
|
||||
return setParams(action);
|
||||
}
|
||||
return action;
|
||||
};
|
||||
|
||||
console.warn(
|
||||
[
|
||||
`The action type '${action.type}' has been renamed to '${mappedType}'.`,
|
||||
`'${action.type}' will continue to work while in beta but will be removed`,
|
||||
'in the first major release. Moving forward, you should use the',
|
||||
'action constants and action creators exported by this library in',
|
||||
"the 'actions' object.",
|
||||
'See https://github.com/react-community/react-navigation/pull/120 for',
|
||||
'more details.',
|
||||
].join(' ')
|
||||
);
|
||||
|
||||
return {
|
||||
...action,
|
||||
type: deprecatedActionMap[action.type],
|
||||
};
|
||||
const mapDeprecatedActionAndWarn = (
|
||||
action: PossiblyDeprecatedNavigationAction
|
||||
): NavigationAction => {
|
||||
const newAction = mapDeprecatedAction(action);
|
||||
if (newAction !== action) {
|
||||
const oldType = action.type;
|
||||
const newType = newAction.type;
|
||||
console.warn(
|
||||
[
|
||||
`The action type '${oldType}' has been renamed to '${newType}'.`,
|
||||
`'${oldType}' will continue to work while in beta but will be removed`,
|
||||
'in the first major release. Moving forward, you should use the',
|
||||
'action constants and action creators exported by this library in',
|
||||
"the 'actions' object.",
|
||||
'See https://github.com/react-community/react-navigation/pull/120 for',
|
||||
'more details.',
|
||||
].join(' ')
|
||||
);
|
||||
}
|
||||
return newAction;
|
||||
};
|
||||
|
||||
export default {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import type { TabScene } from './views/TabView/TabView';
|
||||
|
||||
@ -27,46 +27,87 @@ export type NavigationParams = {
|
||||
[key: string]: mixed,
|
||||
};
|
||||
|
||||
export type NavigationNavigateAction = {
|
||||
export type NavigationNavigateAction = {|
|
||||
type: 'Navigation/NAVIGATE',
|
||||
routeName: string,
|
||||
params?: NavigationParams,
|
||||
|
||||
// The action to run inside the sub-router
|
||||
action?: NavigationNavigateAction,
|
||||
};
|
||||
|};
|
||||
|
||||
export type NavigationBackAction = {
|
||||
export type DeprecatedNavigationNavigateAction = {|
|
||||
type: 'Navigate',
|
||||
routeName: string,
|
||||
params?: NavigationParams,
|
||||
|
||||
// The action to run inside the sub-router
|
||||
action?: NavigationNavigateAction | DeprecatedNavigationNavigateAction,
|
||||
|};
|
||||
|
||||
export type NavigationBackAction = {|
|
||||
type: 'Navigation/BACK',
|
||||
key?: ?string,
|
||||
};
|
||||
|};
|
||||
|
||||
export type NavigationSetParamsAction = {
|
||||
export type DeprecatedNavigationBackAction = {|
|
||||
type: 'Back',
|
||||
key?: ?string,
|
||||
|};
|
||||
|
||||
export type NavigationSetParamsAction = {|
|
||||
type: 'Navigation/SET_PARAMS',
|
||||
|
||||
// The key of the route where the params should be set
|
||||
key: string,
|
||||
|
||||
// The new params to merge into the existing route params
|
||||
params?: NavigationParams,
|
||||
};
|
||||
params: NavigationParams,
|
||||
|};
|
||||
|
||||
export type NavigationInitAction = {
|
||||
export type DeprecatedNavigationSetParamsAction = {|
|
||||
type: 'SetParams',
|
||||
|
||||
// The key of the route where the params should be set
|
||||
key: string,
|
||||
|
||||
// The new params to merge into the existing route params
|
||||
params: NavigationParams,
|
||||
|};
|
||||
|
||||
export type NavigationInitAction = {|
|
||||
type: 'Navigation/INIT',
|
||||
params?: NavigationParams,
|
||||
};
|
||||
|};
|
||||
|
||||
export type NavigationResetAction = {
|
||||
export type DeprecatedNavigationInitAction = {|
|
||||
type: 'Init',
|
||||
params?: NavigationParams,
|
||||
|};
|
||||
|
||||
export type NavigationResetAction = {|
|
||||
type: 'Navigation/RESET',
|
||||
index: number,
|
||||
key?: ?string,
|
||||
actions: Array<NavigationNavigateAction>,
|
||||
};
|
||||
|};
|
||||
|
||||
export type NavigationUriAction = {
|
||||
export type DeprecatedNavigationResetAction = {|
|
||||
type: 'Reset',
|
||||
index: number,
|
||||
key?: ?string,
|
||||
actions: Array<NavigationNavigateAction | DeprecatedNavigationNavigateAction>,
|
||||
|};
|
||||
|
||||
export type NavigationUriAction = {|
|
||||
type: 'Navigation/URI',
|
||||
uri: string,
|
||||
};
|
||||
|};
|
||||
|
||||
export type DeprecatedNavigationUriAction = {|
|
||||
type: 'Uri',
|
||||
uri: string,
|
||||
|};
|
||||
|
||||
export type NavigationStackAction =
|
||||
| NavigationInitAction
|
||||
@ -75,16 +116,39 @@ export type NavigationStackAction =
|
||||
| NavigationSetParamsAction
|
||||
| NavigationResetAction;
|
||||
|
||||
export type DeprecatedNavigationStackAction =
|
||||
| DeprecatedNavigationInitAction
|
||||
| DeprecatedNavigationNavigateAction
|
||||
| DeprecatedNavigationBackAction
|
||||
| DeprecatedNavigationSetParamsAction
|
||||
| DeprecatedNavigationResetAction;
|
||||
|
||||
export type NavigationTabAction =
|
||||
| NavigationInitAction
|
||||
| NavigationNavigateAction
|
||||
| NavigationBackAction;
|
||||
| NavigationBackAction
|
||||
| NavigationSetParamsAction;
|
||||
|
||||
export type DeprecatedNavigationTabAction =
|
||||
| DeprecatedNavigationInitAction
|
||||
| DeprecatedNavigationNavigateAction
|
||||
| DeprecatedNavigationBackAction
|
||||
| DeprecatedNavigationSetParamsAction;
|
||||
|
||||
export type NavigationAction =
|
||||
| NavigationInitAction
|
||||
| NavigationStackAction
|
||||
| NavigationTabAction;
|
||||
|
||||
export type DeprecatedNavigationAction =
|
||||
| DeprecatedNavigationInitAction
|
||||
| DeprecatedNavigationStackAction
|
||||
| DeprecatedNavigationTabAction;
|
||||
|
||||
export type PossiblyDeprecatedNavigationAction =
|
||||
| NavigationAction
|
||||
| DeprecatedNavigationAction;
|
||||
|
||||
/**
|
||||
* NavigationState is a tree of routes for a single navigator, where each child
|
||||
* route may either be a NavigationScreenRoute or a NavigationRouterRoute.
|
||||
@ -136,16 +200,26 @@ export type NavigationStateRoute = {
|
||||
routes: Array<NavigationRoute>,
|
||||
};
|
||||
|
||||
export type DrawerNavigationState = {
|
||||
...$Exact<NavigationLeafRoute>,
|
||||
index: number,
|
||||
routes: [],
|
||||
};
|
||||
|
||||
/**
|
||||
* Router
|
||||
*/
|
||||
|
||||
export type NavigationScreenOptionsGetter<Options, Action> = (
|
||||
navigation: NavigationScreenProp<NavigationRoute, Action>,
|
||||
export type NavigationScreenOptionsGetter<Options: {}> = (
|
||||
navigation: NavigationScreenProp<NavigationRoute>,
|
||||
screenProps?: {}
|
||||
) => Options;
|
||||
|
||||
export type NavigationRouter<State, Action, Options> = {
|
||||
export type NavigationRouter<
|
||||
State: NavigationState,
|
||||
Action: NavigationAction,
|
||||
Options: {}
|
||||
> = {
|
||||
/**
|
||||
* The reducer that outputs the new navigation state for a given action, with
|
||||
* an optional previous state. When the action is considered handled but the
|
||||
@ -181,21 +255,21 @@ export type NavigationRouter<State, Action, Options> = {
|
||||
*
|
||||
* {routeName: 'Foo', key: '123'}
|
||||
*/
|
||||
getScreenOptions: NavigationScreenOptionsGetter<Options, Action>,
|
||||
getScreenOptions: NavigationScreenOptionsGetter<Options>,
|
||||
};
|
||||
|
||||
export type NavigationScreenDetails<T> = {
|
||||
options: T,
|
||||
state: NavigationRoute,
|
||||
navigation: NavigationScreenProp<NavigationRoute, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationRoute>,
|
||||
};
|
||||
|
||||
export type NavigationScreenOptions = {
|
||||
export type NavigationScreenOptions = {|
|
||||
title?: string,
|
||||
};
|
||||
|};
|
||||
|
||||
export type NavigationScreenConfigProps = {
|
||||
navigation: NavigationScreenProp<NavigationRoute, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationRoute>,
|
||||
screenProps: {},
|
||||
};
|
||||
|
||||
@ -203,22 +277,27 @@ export type NavigationScreenConfig<Options> =
|
||||
| Options
|
||||
| (({
|
||||
...$Exact<NavigationScreenConfigProps>,
|
||||
navigationOptions: NavigationScreenProp<
|
||||
NavigationRoute,
|
||||
NavigationAction
|
||||
>,
|
||||
navigationOptions: Options,
|
||||
}) => Options);
|
||||
|
||||
export type NavigationComponent =
|
||||
| NavigationScreenComponent<*, *>
|
||||
| NavigationNavigator<*, *, *, *>;
|
||||
| NavigationScreenComponent<NavigationRoute, *>
|
||||
| NavigationNavigator<NavigationStateRoute, *, *>;
|
||||
|
||||
export type NavigationScreenComponent<T, Options> = ReactClass<T> & {
|
||||
export type NavigationScreenComponent<
|
||||
Route: NavigationRoute,
|
||||
Options: {}
|
||||
> = React.ComponentType<NavigationNavigatorProps<Options, Route>> & {
|
||||
router?: void,
|
||||
navigationOptions?: NavigationScreenConfig<Options>,
|
||||
};
|
||||
|
||||
export type NavigationNavigator<T, State, Action, Options> = ReactClass<T> & {
|
||||
router?: NavigationRouter<State, Action, Options>,
|
||||
export type NavigationNavigator<
|
||||
State: NavigationState,
|
||||
Action: NavigationAction,
|
||||
Options: {}
|
||||
> = React.ComponentType<NavigationNavigatorProps<Options, *>> & {
|
||||
router: NavigationRouter<State, Action, Options>,
|
||||
navigationOptions?: NavigationScreenConfig<Options>,
|
||||
};
|
||||
|
||||
@ -261,37 +340,35 @@ export type HeaderProps = {
|
||||
getScreenDetails: NavigationScene => NavigationScreenDetails<
|
||||
NavigationStackScreenOptions
|
||||
>,
|
||||
style: ViewStyleProp,
|
||||
isLandscape?: boolean,
|
||||
};
|
||||
|
||||
/**
|
||||
* Stack Navigator
|
||||
*/
|
||||
|
||||
export type NavigationStackScreenOptions = {
|
||||
export type NavigationStackScreenOptions = {|
|
||||
...$Exact<NavigationScreenOptions>,
|
||||
header?: ?(React.Element<*> | (HeaderProps => React.Element<*>)),
|
||||
headerTitle?: string | React.Element<*>,
|
||||
header?: ?(React.Node | (HeaderProps => React.Node)),
|
||||
headerTitle?: string | React.Node,
|
||||
headerTitleStyle?: AnimatedTextStyleProp,
|
||||
headerTitleAllowFontScaling?: boolean,
|
||||
headerTintColor?: string,
|
||||
headerLeft?: React.Element<*>,
|
||||
headerLeft?: React.Node,
|
||||
headerBackTitle?: string,
|
||||
headerTruncatedBackTitle?: string,
|
||||
headerBackTitleStyle?: TextStyleProp,
|
||||
headerPressColorAndroid?: string,
|
||||
headerRight?: React.Element<*>,
|
||||
headerRight?: React.Node,
|
||||
headerStyle?: ViewStyleProp,
|
||||
gesturesEnabled?: boolean,
|
||||
gestureResponseDistance?: { vertical?: number, horizontal?: number },
|
||||
};
|
||||
|};
|
||||
|
||||
export type NavigationStackRouterConfig = {
|
||||
initialRouteName?: string,
|
||||
initialRouteParams?: NavigationParams,
|
||||
paths?: NavigationPathsConfig,
|
||||
navigationOptions?: NavigationScreenConfig<NavigationStackScreenOptions>,
|
||||
navigationOptions?: NavigationScreenConfig<*>,
|
||||
};
|
||||
|
||||
export type NavigationStackViewConfig = {
|
||||
@ -315,78 +392,72 @@ export type StackNavigatorConfig = {
|
||||
export type NavigationTabRouterConfig = {
|
||||
initialRouteName?: string,
|
||||
paths?: NavigationPathsConfig,
|
||||
navigationOptions?: NavigationScreenConfig<NavigationTabScreenOptions>,
|
||||
navigationOptions?: NavigationScreenConfig<*>,
|
||||
order?: Array<string>, // todo: type these as the real route names rather than 'string'
|
||||
|
||||
// Does the back button cause the router to switch to the initial tab
|
||||
backBehavior?: 'none' | 'initialRoute', // defaults `initialRoute`
|
||||
};
|
||||
|
||||
export type NavigationTabScreenOptions = {
|
||||
export type NavigationTabScreenOptions = {|
|
||||
...$Exact<NavigationScreenOptions>,
|
||||
tabBarIcon?:
|
||||
| React.Element<*>
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Element<
|
||||
*
|
||||
>),
|
||||
| React.Node
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Node),
|
||||
tabBarLabel?:
|
||||
| string
|
||||
| React.Element<*>
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Element<
|
||||
*
|
||||
>),
|
||||
| React.Node
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Node),
|
||||
tabBarVisible?: boolean,
|
||||
tabBarTestIDProps?: { testID?: string, accessibilityLabel?: string },
|
||||
tabBarOnPress?: (
|
||||
scene: TabScene,
|
||||
jumpToIndex: (index: number) => void
|
||||
) => void,
|
||||
};
|
||||
|};
|
||||
|
||||
/**
|
||||
* Drawer
|
||||
*/
|
||||
|
||||
export type NavigationDrawerScreenOptions = {
|
||||
export type NavigationDrawerScreenOptions = {|
|
||||
...$Exact<NavigationScreenOptions>,
|
||||
drawerIcon?:
|
||||
| React.Element<*>
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Element<
|
||||
*
|
||||
>),
|
||||
| React.Node
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Node),
|
||||
drawerLabel?:
|
||||
| React.Element<*>
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Element<
|
||||
*
|
||||
>),
|
||||
| React.Node
|
||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React.Node),
|
||||
drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open',
|
||||
};
|
||||
|};
|
||||
|
||||
/**
|
||||
* Navigator Prop
|
||||
*/
|
||||
|
||||
export type NavigationDispatch<A> = (action: A) => boolean;
|
||||
export type NavigationDispatch = (
|
||||
action: PossiblyDeprecatedNavigationAction
|
||||
) => boolean;
|
||||
|
||||
export type NavigationProp<S, A> = {
|
||||
state: S,
|
||||
dispatch: NavigationDispatch<A>,
|
||||
export type NavigationProp<S> = {
|
||||
+state: S,
|
||||
dispatch: NavigationDispatch,
|
||||
};
|
||||
|
||||
export type NavigationScreenProp<S, A> = {
|
||||
state: S,
|
||||
dispatch: NavigationDispatch<A>,
|
||||
export type NavigationScreenProp<S: {}> = {
|
||||
+state: S,
|
||||
dispatch: NavigationDispatch,
|
||||
goBack: (routeKey?: ?string) => boolean,
|
||||
navigate: (
|
||||
routeName: string,
|
||||
params?: NavigationParams,
|
||||
action?: NavigationAction
|
||||
action?: NavigationNavigateAction
|
||||
) => boolean,
|
||||
setParams: (newParams: NavigationParams) => boolean,
|
||||
};
|
||||
|
||||
export type NavigationNavigatorProps<O, S> = {
|
||||
navigation?: NavigationProp<S, NavigationAction>,
|
||||
export type NavigationNavigatorProps<O: {}, S: {}> = {
|
||||
navigation: NavigationScreenProp<S>,
|
||||
screenProps?: *,
|
||||
navigationOptions?: O,
|
||||
};
|
||||
@ -418,7 +489,7 @@ export type NavigationTransitionProps = {
|
||||
layout: NavigationLayout,
|
||||
|
||||
// The destination navigation state of the transition
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
|
||||
// The progressive index of the transitioner's navigation state.
|
||||
position: Animated.Value,
|
||||
@ -477,7 +548,7 @@ export type NavigationAnimationSetter = (
|
||||
lastState: NavigationState
|
||||
) => void;
|
||||
|
||||
export type NavigationSceneRenderer = () => ?React.Element<*>;
|
||||
export type NavigationSceneRenderer = () => React.Node;
|
||||
|
||||
export type NavigationStyleInterpolator = (
|
||||
props: NavigationSceneRendererProps
|
||||
|
@ -3,59 +3,89 @@
|
||||
import NavigationActions from '../NavigationActions';
|
||||
|
||||
describe('actions', () => {
|
||||
const data = { foo: 'bar' };
|
||||
const params = { foo: 'bar' };
|
||||
const navigateAction = NavigationActions.navigate({ routeName: 'another' });
|
||||
|
||||
it('exports back action and type', () => {
|
||||
expect(NavigationActions.back()).toEqual({ type: NavigationActions.BACK });
|
||||
expect(NavigationActions.back(data)).toEqual({
|
||||
expect(NavigationActions.back({ key: 'test' })).toEqual({
|
||||
type: NavigationActions.BACK,
|
||||
...data,
|
||||
key: 'test',
|
||||
});
|
||||
});
|
||||
|
||||
it('exports init action and type', () => {
|
||||
expect(NavigationActions.init()).toEqual({ type: NavigationActions.INIT });
|
||||
expect(NavigationActions.init(data)).toEqual({
|
||||
expect(NavigationActions.init({ params })).toEqual({
|
||||
type: NavigationActions.INIT,
|
||||
...data,
|
||||
params,
|
||||
});
|
||||
});
|
||||
|
||||
it('exports navigate action and type', () => {
|
||||
expect(NavigationActions.navigate()).toEqual({
|
||||
expect(NavigationActions.navigate({ routeName: 'test' })).toEqual({
|
||||
type: NavigationActions.NAVIGATE,
|
||||
routeName: 'test',
|
||||
});
|
||||
expect(NavigationActions.navigate(data)).toEqual({
|
||||
expect(
|
||||
NavigationActions.navigate({
|
||||
routeName: 'test',
|
||||
params,
|
||||
action: navigateAction,
|
||||
})
|
||||
).toEqual({
|
||||
type: NavigationActions.NAVIGATE,
|
||||
...data,
|
||||
routeName: 'test',
|
||||
params,
|
||||
action: {
|
||||
type: NavigationActions.NAVIGATE,
|
||||
routeName: 'another',
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it('exports reset action and type', () => {
|
||||
expect(NavigationActions.reset()).toEqual({
|
||||
expect(NavigationActions.reset({ index: 0, actions: [] })).toEqual({
|
||||
type: NavigationActions.RESET,
|
||||
index: 0,
|
||||
actions: [],
|
||||
});
|
||||
expect(NavigationActions.reset(data)).toEqual({
|
||||
expect(
|
||||
NavigationActions.reset({
|
||||
index: 0,
|
||||
key: 'test',
|
||||
actions: [navigateAction],
|
||||
})
|
||||
).toEqual({
|
||||
type: NavigationActions.RESET,
|
||||
...data,
|
||||
index: 0,
|
||||
key: 'test',
|
||||
actions: [
|
||||
{
|
||||
type: NavigationActions.NAVIGATE,
|
||||
routeName: 'another',
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
it('exports setParams action and type', () => {
|
||||
expect(NavigationActions.setParams()).toEqual({
|
||||
expect(
|
||||
NavigationActions.setParams({
|
||||
key: 'test',
|
||||
params,
|
||||
})
|
||||
).toEqual({
|
||||
type: NavigationActions.SET_PARAMS,
|
||||
});
|
||||
expect(NavigationActions.setParams(data)).toEqual({
|
||||
type: NavigationActions.SET_PARAMS,
|
||||
...data,
|
||||
key: 'test',
|
||||
params,
|
||||
});
|
||||
});
|
||||
|
||||
it('exports uri action and type', () => {
|
||||
expect(NavigationActions.uri()).toEqual({ type: NavigationActions.URI });
|
||||
expect(NavigationActions.uri(data)).toEqual({
|
||||
expect(NavigationActions.uri({ uri: 'http://google.com' })).toEqual({
|
||||
type: NavigationActions.URI,
|
||||
...data,
|
||||
uri: 'http://google.com',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -5,45 +5,53 @@
|
||||
*/
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationProp,
|
||||
NavigationParams,
|
||||
NavigationScreenProp,
|
||||
NavigationNavigateAction,
|
||||
} from './TypeDefinition';
|
||||
|
||||
import NavigationActions from './NavigationActions';
|
||||
import invariant from './utils/invariant';
|
||||
|
||||
export default function<S: *>(navigation: NavigationProp<S, NavigationAction>) {
|
||||
export default function<S: {}>(
|
||||
navigation: NavigationProp<S>
|
||||
): NavigationScreenProp<S> {
|
||||
return {
|
||||
...navigation,
|
||||
goBack: (key?: ?string): boolean =>
|
||||
navigation.dispatch(
|
||||
NavigationActions.back({
|
||||
key: key === undefined ? navigation.state.key : key,
|
||||
})
|
||||
),
|
||||
goBack: (key?: ?string): boolean => {
|
||||
let actualizedKey: ?string = key;
|
||||
if (key === undefined && navigation.state.key) {
|
||||
invariant(
|
||||
typeof navigation.state.key === 'string',
|
||||
'key should be a string'
|
||||
);
|
||||
actualizedKey = navigation.state.key;
|
||||
}
|
||||
return navigation.dispatch(
|
||||
NavigationActions.back({ key: actualizedKey })
|
||||
);
|
||||
},
|
||||
navigate: (
|
||||
routeName: string,
|
||||
params?: NavigationParams,
|
||||
action?: NavigationAction
|
||||
action?: NavigationNavigateAction
|
||||
): boolean =>
|
||||
navigation.dispatch(
|
||||
NavigationActions.navigate({
|
||||
routeName,
|
||||
params,
|
||||
action,
|
||||
})
|
||||
NavigationActions.navigate({ routeName, params, action })
|
||||
),
|
||||
/**
|
||||
* For updating current route params. For example the nav bar title and
|
||||
* buttons are based on the route params.
|
||||
* This means `setParams` can be used to update nav bar for example.
|
||||
*/
|
||||
setParams: (params: NavigationParams): boolean =>
|
||||
navigation.dispatch(
|
||||
NavigationActions.setParams({
|
||||
params,
|
||||
key: navigation.state.key,
|
||||
})
|
||||
),
|
||||
setParams: (params: NavigationParams): boolean => {
|
||||
invariant(
|
||||
navigation.state.key && typeof navigation.state.key === 'string',
|
||||
'setParams cannot be called by root navigator'
|
||||
);
|
||||
const key = navigation.state.key;
|
||||
return navigation.dispatch(NavigationActions.setParams({ params, key }));
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@ -4,27 +4,29 @@ import React from 'react';
|
||||
import { BackHandler, Linking } from './PlatformHelpers';
|
||||
import NavigationActions from './NavigationActions';
|
||||
import addNavigationHelpers from './addNavigationHelpers';
|
||||
import invariant from './utils/invariant';
|
||||
|
||||
import type {
|
||||
NavigationRoute,
|
||||
NavigationAction,
|
||||
NavigationState,
|
||||
NavigationScreenProp,
|
||||
NavigationNavigatorProps,
|
||||
NavigationNavigator,
|
||||
PossiblyDeprecatedNavigationAction,
|
||||
NavigationInitAction,
|
||||
} from './TypeDefinition';
|
||||
|
||||
type NavigationContainerProps = {
|
||||
type Props<O> = {
|
||||
uriPrefix?: string | RegExp,
|
||||
onNavigationStateChange?: (
|
||||
NavigationState,
|
||||
NavigationState,
|
||||
NavigationAction
|
||||
) => void,
|
||||
navigation?: NavigationScreenProp<NavigationState>,
|
||||
screenProps?: *,
|
||||
navigationOptions?: O,
|
||||
};
|
||||
|
||||
type Props<O, S> = NavigationContainerProps & NavigationNavigatorProps<O, S>;
|
||||
|
||||
type State = {
|
||||
nav: ?NavigationState,
|
||||
};
|
||||
@ -35,20 +37,17 @@ type State = {
|
||||
* This allows to use e.g. the StackNavigator and TabNavigator as root-level
|
||||
* components.
|
||||
*/
|
||||
export default function createNavigationContainer<S: *, O>(
|
||||
Component: NavigationNavigator<*, S, *, O>
|
||||
export default function createNavigationContainer<A: *, O: *>(
|
||||
Component: NavigationNavigator<NavigationState, A | NavigationInitAction, O>
|
||||
) {
|
||||
class NavigationContainer extends React.Component<void, Props<O, S>, State> {
|
||||
state: State;
|
||||
props: Props<O, S>;
|
||||
|
||||
class NavigationContainer extends React.Component<Props<O>, State> {
|
||||
subs: ?{
|
||||
remove: () => void,
|
||||
} = null;
|
||||
|
||||
static router = Component.router;
|
||||
|
||||
constructor(props: Props<O, S>) {
|
||||
constructor(props: Props<O>) {
|
||||
super(props);
|
||||
|
||||
this._validateProps(props);
|
||||
@ -64,7 +63,7 @@ export default function createNavigationContainer<S: *, O>(
|
||||
return !this.props.navigation;
|
||||
}
|
||||
|
||||
_validateProps(props: Props<O, S>) {
|
||||
_validateProps(props: Props<O>) {
|
||||
if (this._isStateful()) {
|
||||
return;
|
||||
}
|
||||
@ -167,34 +166,42 @@ export default function createNavigationContainer<S: *, O>(
|
||||
this.subs && this.subs.remove();
|
||||
}
|
||||
|
||||
dispatch = (action: NavigationAction) => {
|
||||
const { state } = this;
|
||||
dispatch = (inputAction: PossiblyDeprecatedNavigationAction) => {
|
||||
// $FlowFixMe remove after we deprecate the old actions
|
||||
const action: A = NavigationActions.mapDeprecatedActionAndWarn(
|
||||
inputAction
|
||||
);
|
||||
if (!this._isStateful()) {
|
||||
return false;
|
||||
}
|
||||
const nav = Component.router.getStateForAction(action, state.nav);
|
||||
if (nav && nav !== state.nav) {
|
||||
const oldNav = this.state.nav;
|
||||
invariant(oldNav, 'should be set in constructor if stateful');
|
||||
const nav = Component.router.getStateForAction(action, oldNav);
|
||||
if (nav && nav !== oldNav) {
|
||||
this.setState({ nav }, () =>
|
||||
this._onNavigationStateChange(state.nav, nav, action)
|
||||
this._onNavigationStateChange(oldNav, nav, action)
|
||||
);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
_navigation: ?NavigationScreenProp<NavigationRoute, NavigationAction>;
|
||||
_navigation: ?NavigationScreenProp<NavigationState>;
|
||||
|
||||
render() {
|
||||
let navigation = this.props.navigation;
|
||||
if (this._isStateful()) {
|
||||
if (!this._navigation || this._navigation.state !== this.state.nav) {
|
||||
const nav = this.state.nav;
|
||||
invariant(nav, 'should be set in constructor if stateful');
|
||||
if (!this._navigation || this._navigation.state !== nav) {
|
||||
this._navigation = addNavigationHelpers({
|
||||
dispatch: this.dispatch,
|
||||
state: this.state.nav,
|
||||
state: nav,
|
||||
});
|
||||
}
|
||||
navigation = this._navigation;
|
||||
}
|
||||
invariant(navigation, 'failed to get navigation');
|
||||
return <Component {...this.props} navigation={navigation} />;
|
||||
}
|
||||
}
|
||||
|
@ -64,6 +64,8 @@ const DrawerNavigator = (
|
||||
routeConfigs,
|
||||
config,
|
||||
NavigatorTypes.DRAWER
|
||||
// Flow doesn't realize DrawerScreen already has childNavigationProps
|
||||
// from withCachedChildNavigation for some reason. $FlowFixMe
|
||||
)((props: *) => <DrawerScreen {...props} />),
|
||||
},
|
||||
DrawerOpen: {
|
||||
|
@ -49,6 +49,8 @@ const TabNavigator = (
|
||||
config,
|
||||
NavigatorTypes.TABS
|
||||
)((props: *) => (
|
||||
// Flow doesn't realize TabView already has childNavigationProps from
|
||||
// withCachedChildNavigation for some reason. $FlowFixMe
|
||||
<TabView
|
||||
{...props}
|
||||
tabBarComponent={tabBarComponent}
|
||||
|
@ -8,7 +8,6 @@ exports[`StackNavigator applies correct values when headerRight is present 1`] =
|
||||
Object {
|
||||
"flex": 1,
|
||||
},
|
||||
undefined,
|
||||
]
|
||||
}
|
||||
>
|
||||
@ -230,7 +229,6 @@ exports[`StackNavigator renders successfully 1`] = `
|
||||
Object {
|
||||
"flex": 1,
|
||||
},
|
||||
undefined,
|
||||
]
|
||||
}
|
||||
>
|
||||
|
@ -1,31 +1,43 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import type {
|
||||
NavigationRouter,
|
||||
NavigationNavigator,
|
||||
NavigationNavigatorProps,
|
||||
NavigationRouteConfigMap,
|
||||
NavigationAction,
|
||||
NavigationState,
|
||||
NavigationScreenProp,
|
||||
} from '../TypeDefinition';
|
||||
|
||||
import type { NavigatorType } from './NavigatorTypes';
|
||||
|
||||
type InjectedProps<S: NavigationState, A: NavigationAction, O: *> = {
|
||||
router: NavigationRouter<S, A, O>,
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a navigator based on a router and a view that renders the screens.
|
||||
*/
|
||||
export default function createNavigator<C: *, S, A, NavigatorConfig, Options>(
|
||||
router: NavigationRouter<S, A, Options>,
|
||||
export default function createNavigator<
|
||||
S: NavigationState,
|
||||
A: *,
|
||||
NavigatorConfig,
|
||||
O: *
|
||||
>(
|
||||
router: NavigationRouter<S, A, O>,
|
||||
routeConfigs?: NavigationRouteConfigMap,
|
||||
navigatorConfig?: NavigatorConfig,
|
||||
navigatorType?: NavigatorType
|
||||
) {
|
||||
return (
|
||||
NavigationView: ReactClass<C>
|
||||
): NavigationNavigator<C, S, A, Options> => {
|
||||
class Navigator extends React.Component {
|
||||
props: NavigationNavigatorProps<Options, S>;
|
||||
|
||||
NavigationView: React.ComponentType<
|
||||
InjectedProps<S, A, O> & NavigationNavigatorProps<O, S>
|
||||
>
|
||||
): NavigationNavigator<S, A, O> => {
|
||||
class Navigator extends React.Component<NavigationNavigatorProps<O, S>> {
|
||||
static router = router;
|
||||
|
||||
static routeConfigs = routeConfigs;
|
||||
|
@ -10,7 +10,6 @@ import validateRouteConfigMap from './validateRouteConfigMap';
|
||||
import getScreenConfigDeprecated from './getScreenConfigDeprecated';
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationComponent,
|
||||
NavigationNavigateAction,
|
||||
NavigationRouter,
|
||||
@ -21,6 +20,8 @@ import type {
|
||||
NavigationStackAction,
|
||||
NavigationStackRouterConfig,
|
||||
NavigationStackScreenOptions,
|
||||
NavigationRoute,
|
||||
NavigationStateRoute,
|
||||
} from '../TypeDefinition';
|
||||
|
||||
const uniqueBaseId = `id-${Date.now()}`;
|
||||
@ -32,7 +33,11 @@ function _getUuid() {
|
||||
export default (
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
stackConfig: NavigationStackRouterConfig = {}
|
||||
): NavigationRouter<*, *, NavigationStackScreenOptions> => {
|
||||
): NavigationRouter<
|
||||
NavigationState,
|
||||
NavigationStackAction,
|
||||
NavigationStackScreenOptions
|
||||
> => {
|
||||
// Fail fast on invalid route definitions
|
||||
validateRouteConfigMap(routeConfigs);
|
||||
|
||||
@ -90,11 +95,9 @@ export default (
|
||||
},
|
||||
|
||||
getStateForAction(
|
||||
passedAction: NavigationStackAction,
|
||||
action: NavigationStackAction,
|
||||
state: ?NavigationState
|
||||
) {
|
||||
const action = NavigationActions.mapDeprecatedActionAndWarn(passedAction);
|
||||
|
||||
): ?NavigationState {
|
||||
// Set up the initial state if needed
|
||||
if (!state) {
|
||||
let route = {};
|
||||
@ -124,10 +127,10 @@ export default (
|
||||
const params = (route.params ||
|
||||
action.params ||
|
||||
initialRouteParams) && {
|
||||
...(route.params || {}),
|
||||
...(action.params || {}),
|
||||
...(initialRouteParams || {}),
|
||||
};
|
||||
...(route.params || {}),
|
||||
...(action.params || {}),
|
||||
...(initialRouteParams || {}),
|
||||
};
|
||||
route = {
|
||||
...route,
|
||||
routeName: initialRouteName,
|
||||
@ -222,9 +225,9 @@ export default (
|
||||
}
|
||||
|
||||
if (action.type === NavigationActions.SET_PARAMS) {
|
||||
const key = action.key;
|
||||
const lastRoute = state.routes.find(
|
||||
/* $FlowFixMe */
|
||||
(route: *) => route.key === action.key
|
||||
(route: NavigationRoute) => route.key === key
|
||||
);
|
||||
if (lastRoute) {
|
||||
const params = {
|
||||
@ -272,11 +275,11 @@ export default (
|
||||
}
|
||||
|
||||
if (action.type === NavigationActions.BACK) {
|
||||
const key = action.key;
|
||||
let backRouteIndex = null;
|
||||
if (action.key) {
|
||||
if (key) {
|
||||
const backRoute = state.routes.find(
|
||||
/* $FlowFixMe */
|
||||
(route: *) => route.key === action.key
|
||||
(route: NavigationRoute) => route.key === key
|
||||
);
|
||||
/* $FlowFixMe */
|
||||
backRouteIndex = state.routes.indexOf(backRoute);
|
||||
@ -306,9 +309,11 @@ export default (
|
||||
let path = subPath;
|
||||
let params = route.params;
|
||||
if (screen && screen.router) {
|
||||
// $FlowFixMe there's no way type the specific shape of the nav state
|
||||
const stateRoute: NavigationStateRoute = route;
|
||||
// If it has a router it's a navigator.
|
||||
// If it doesn't have router it's an ordinary React component.
|
||||
const child = screen.router.getPathAndParamsForState(route);
|
||||
const child = screen.router.getPathAndParamsForState(stateRoute);
|
||||
path = subPath ? `${subPath}/${child.path}` : child.path;
|
||||
params = child.params ? { ...params, ...child.params } : params;
|
||||
}
|
||||
@ -318,7 +323,7 @@ export default (
|
||||
};
|
||||
},
|
||||
|
||||
getActionForPathAndParams(pathToResolve: string): ?NavigationAction {
|
||||
getActionForPathAndParams(pathToResolve: string): ?NavigationStackAction {
|
||||
// If the path is empty (null or empty string)
|
||||
// just return the initial route action
|
||||
if (!pathToResolve) {
|
||||
|
@ -9,9 +9,7 @@ import validateRouteConfigMap from './validateRouteConfigMap';
|
||||
import getScreenConfigDeprecated from './getScreenConfigDeprecated';
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationComponent,
|
||||
NavigationScreenComponent,
|
||||
NavigationState,
|
||||
NavigationRouteConfigMap,
|
||||
NavigationParams,
|
||||
@ -19,13 +17,14 @@ import type {
|
||||
NavigationRoute,
|
||||
NavigationNavigateAction,
|
||||
NavigationTabRouterConfig,
|
||||
NavigationTabScreenOptions,
|
||||
NavigationTabAction,
|
||||
NavigationStateRoute,
|
||||
} from '../TypeDefinition';
|
||||
|
||||
export default (
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
config: NavigationTabRouterConfig = {}
|
||||
): NavigationRouter<*, *, *> => {
|
||||
): NavigationRouter<NavigationState, NavigationTabAction, *> => {
|
||||
// Fail fast on invalid route definitions
|
||||
validateRouteConfigMap(routeConfigs);
|
||||
|
||||
@ -53,12 +52,9 @@ export default (
|
||||
}
|
||||
return {
|
||||
getStateForAction(
|
||||
action: NavigationAction | { action: NavigationAction },
|
||||
action: NavigationTabAction,
|
||||
inputState?: ?NavigationState
|
||||
): ?NavigationState {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
action = NavigationActions.mapDeprecatedActionAndWarn(action);
|
||||
|
||||
// Establish a default state
|
||||
let state = inputState;
|
||||
if (!state) {
|
||||
@ -180,9 +176,9 @@ export default (
|
||||
}
|
||||
}
|
||||
if (action.type === NavigationActions.SET_PARAMS) {
|
||||
const key = action.key;
|
||||
const lastRoute = state.routes.find(
|
||||
/* $FlowFixMe */
|
||||
(route: *) => route.key === action.key
|
||||
(route: NavigationRoute) => route.key === key
|
||||
);
|
||||
if (lastRoute) {
|
||||
const params = {
|
||||
@ -253,9 +249,7 @@ export default (
|
||||
return state;
|
||||
},
|
||||
|
||||
getComponentForState(
|
||||
state: NavigationState
|
||||
): NavigationScreenComponent<*, NavigationTabScreenOptions> {
|
||||
getComponentForState(state: NavigationState): NavigationComponent {
|
||||
const routeName = order[state.index];
|
||||
invariant(
|
||||
routeName,
|
||||
@ -281,9 +275,11 @@ export default (
|
||||
let path = subPath;
|
||||
let params = route.params;
|
||||
if (screen && screen.router) {
|
||||
// $FlowFixMe there's no way type the specific shape of the nav state
|
||||
const stateRoute: NavigationStateRoute = route;
|
||||
// If it has a router it's a navigator.
|
||||
// If it doesn't have router it's an ordinary React component.
|
||||
const child = screen.router.getPathAndParamsForState(route);
|
||||
const child = screen.router.getPathAndParamsForState(stateRoute);
|
||||
path = subPath ? `${subPath}/${child.path}` : child.path;
|
||||
params = child.params ? { ...params, ...child.params } : params;
|
||||
}
|
||||
@ -298,7 +294,10 @@ export default (
|
||||
*
|
||||
* This will return null if there is no action matched
|
||||
*/
|
||||
getActionForPathAndParams(path: string, params: ?NavigationParams) {
|
||||
getActionForPathAndParams(
|
||||
path: string,
|
||||
params: ?NavigationParams
|
||||
): ?NavigationTabAction {
|
||||
return (
|
||||
order
|
||||
.map((tabId: string) => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* @flow */
|
||||
/* eslint react/no-multi-comp:0 */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import StackRouter from '../StackRouter';
|
||||
import TabRouter from '../TabRouter';
|
||||
@ -19,18 +19,18 @@ Object.keys(ROUTERS).forEach((routerName: string) => {
|
||||
|
||||
describe(`General router features - ${routerName}`, () => {
|
||||
test('title is configurable using navigationOptions and getScreenOptions', () => {
|
||||
class FooView extends React.Component {
|
||||
class FooView extends React.Component<void> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
}
|
||||
class BarView extends React.Component {
|
||||
class BarView extends React.Component<void> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
static navigationOptions = { title: 'BarTitle' };
|
||||
}
|
||||
class BazView extends React.Component {
|
||||
class BazView extends React.Component<void> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* @flow */
|
||||
/* eslint no-shadow:0, react/no-multi-comp:0, react/display-name:0 */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import StackRouter from '../StackRouter';
|
||||
import TabRouter from '../TabRouter';
|
||||
@ -37,7 +37,7 @@ AuthNavigator.router = StackRouter({
|
||||
|
||||
const BarScreen = () => <div />;
|
||||
|
||||
class FooNavigator extends React.Component {
|
||||
class FooNavigator extends React.Component<void> {
|
||||
static router = StackRouter({
|
||||
bar: {
|
||||
path: 'b/:barThing',
|
||||
@ -137,12 +137,12 @@ describe('StackRouter', () => {
|
||||
|
||||
test('Gets the screen for given route', () => {
|
||||
const FooScreen = () => <div />;
|
||||
const BarScreen = class extends React.Component {
|
||||
const BarScreen = class extends React.Component<void> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
};
|
||||
const BazScreen = class extends React.Component {
|
||||
const BazScreen = class extends React.Component<void> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
@ -166,12 +166,12 @@ describe('StackRouter', () => {
|
||||
|
||||
test('Handles getScreen in getComponent', () => {
|
||||
const FooScreen = () => <div />;
|
||||
const BarScreen = class extends React.Component {
|
||||
const BarScreen = class extends React.Component<void> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
};
|
||||
const BazScreen = class extends React.Component {
|
||||
const BazScreen = class extends React.Component<void> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
@ -878,20 +878,19 @@ describe('StackRouter', () => {
|
||||
screen: () => <div />,
|
||||
},
|
||||
});
|
||||
/* $FlowFixMe: these are for deprecated action names */
|
||||
const state = router.getStateForAction({ type: 'Init' });
|
||||
/* $FlowFixMe: these are for deprecated action names */
|
||||
const state2 = router.getStateForAction(
|
||||
{
|
||||
type: 'Reset',
|
||||
actions: [
|
||||
{ type: 'Navigate', routeName: 'Foo', params: { bar: '42' } },
|
||||
{ type: 'Navigate', routeName: 'Bar' },
|
||||
],
|
||||
index: 1,
|
||||
},
|
||||
state
|
||||
);
|
||||
const initAction = NavigationActions.mapDeprecatedActionAndWarn({
|
||||
type: 'Init',
|
||||
});
|
||||
const state = router.getStateForAction(initAction);
|
||||
const resetAction = NavigationActions.mapDeprecatedActionAndWarn({
|
||||
type: 'Reset',
|
||||
actions: [
|
||||
{ type: 'Navigate', routeName: 'Foo', params: { bar: '42' } },
|
||||
{ type: 'Navigate', routeName: 'Bar' },
|
||||
],
|
||||
index: 1,
|
||||
});
|
||||
const state2 = router.getStateForAction(resetAction, state);
|
||||
expect(state2 && state2.index).toEqual(1);
|
||||
expect(state2 && state2.routes[0].params).toEqual({ bar: '42' });
|
||||
expect(state2 && state2.routes[0].routeName).toEqual('Foo');
|
||||
|
@ -554,13 +554,17 @@ describe('TabRouter', () => {
|
||||
{ Foo: BareLeafRouteConfig, Bar: BareLeafRouteConfig },
|
||||
{ initialRouteName: 'Bar' }
|
||||
);
|
||||
const initAction = NavigationActions.mapDeprecatedActionAndWarn({
|
||||
type: 'Init',
|
||||
});
|
||||
/* $FlowFixMe: these are for deprecated action names */
|
||||
const state = router.getStateForAction({ type: 'Init' });
|
||||
const state = router.getStateForAction(initAction);
|
||||
const navigateAction = NavigationActions.mapDeprecatedActionAndWarn({
|
||||
type: 'Navigate',
|
||||
routeName: 'Bar',
|
||||
});
|
||||
/* $FlowFixMe: these are for deprecated action names */
|
||||
const state2 = router.getStateForAction(
|
||||
{ type: 'Navigate', routeName: 'Bar' },
|
||||
state
|
||||
);
|
||||
const state2 = router.getStateForAction(navigateAction, state);
|
||||
expect(state2).toEqual(null);
|
||||
expect(console.warn).toBeCalledWith(
|
||||
expect.stringContaining(
|
||||
|
@ -11,7 +11,7 @@ import type {
|
||||
test('should get config for screen', () => {
|
||||
/* eslint-disable react/no-multi-comp */
|
||||
|
||||
class HomeScreen extends Component {
|
||||
class HomeScreen extends Component<void> {
|
||||
static navigationOptions = ({ navigation }: *) => ({
|
||||
title: `Welcome ${navigation.state.params
|
||||
? navigation.state.params.user
|
||||
@ -24,7 +24,7 @@ test('should get config for screen', () => {
|
||||
}
|
||||
}
|
||||
|
||||
class SettingsScreen extends Component {
|
||||
class SettingsScreen extends Component<void> {
|
||||
static navigationOptions = {
|
||||
title: 'Settings!!!',
|
||||
gesturesEnabled: false,
|
||||
@ -35,7 +35,7 @@ test('should get config for screen', () => {
|
||||
}
|
||||
}
|
||||
|
||||
class NotificationScreen extends Component {
|
||||
class NotificationScreen extends Component<void> {
|
||||
static navigationOptions = ({ navigation }: *) => ({
|
||||
title: '42',
|
||||
gesturesEnabled: navigation.state.params
|
||||
@ -49,8 +49,7 @@ test('should get config for screen', () => {
|
||||
}
|
||||
|
||||
const getScreenOptions: NavigationScreenOptionsGetter<
|
||||
NavigationStackScreenOptions,
|
||||
*
|
||||
NavigationStackScreenOptions
|
||||
> = createConfigGetter({
|
||||
Home: { screen: HomeScreen },
|
||||
Settings: { screen: SettingsScreen },
|
||||
|
@ -10,7 +10,6 @@ import validateScreenOptions from './validateScreenOptions';
|
||||
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationAction,
|
||||
NavigationRoute,
|
||||
NavigationStateRoute,
|
||||
NavigationRouteConfigMap,
|
||||
@ -44,14 +43,9 @@ function applyConfig<T: {}>(
|
||||
export default (
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
navigatorScreenConfig?: NavigationScreenConfig<*>
|
||||
) => (
|
||||
navigation: NavigationScreenProp<NavigationRoute, NavigationAction>,
|
||||
screenProps: *
|
||||
) => {
|
||||
) => (navigation: NavigationScreenProp<NavigationRoute>, screenProps: *) => {
|
||||
const { state, dispatch } = navigation;
|
||||
const route = state;
|
||||
// $FlowFixMe
|
||||
const { routes, index } = (route: NavigationStateRoute);
|
||||
|
||||
invariant(
|
||||
route.routeName && typeof route.routeName === 'string',
|
||||
@ -62,7 +56,10 @@ export default (
|
||||
|
||||
let outputConfig = {};
|
||||
|
||||
if (Component.router) {
|
||||
const router = Component.router;
|
||||
if (router) {
|
||||
// $FlowFixMe
|
||||
const { routes, index } = (route: NavigationStateRoute);
|
||||
if (!route || !routes || index == null) {
|
||||
throw new Error(
|
||||
`Expect nav state to have routes and index, ${JSON.stringify(route)}`
|
||||
@ -73,10 +70,7 @@ export default (
|
||||
state: childRoute,
|
||||
dispatch,
|
||||
});
|
||||
outputConfig = Component.router.getScreenOptions(
|
||||
childNavigation,
|
||||
screenProps
|
||||
);
|
||||
outputConfig = router.getScreenOptions(childNavigation, screenProps);
|
||||
}
|
||||
|
||||
const routeConfig = routeConfigs[route.routeName];
|
||||
|
@ -11,7 +11,7 @@ import type {
|
||||
* Simple helper that gets a single screen (React component or navigator)
|
||||
* out of the navigator config.
|
||||
*/
|
||||
export default function getScreenForRouteName( // eslint-disable-line consistent-return
|
||||
export default function getScreenForRouteName(
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
routeName: string
|
||||
): NavigationComponent {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import { Animated, StyleSheet } from 'react-native';
|
||||
|
||||
@ -10,8 +10,8 @@ import type { NavigationSceneRendererProps } from '../../TypeDefinition';
|
||||
|
||||
type Props = {
|
||||
...$Exact<NavigationSceneRendererProps>,
|
||||
children: React.Children<*>,
|
||||
onComponentRef: (ref: React.Element<*>) => void,
|
||||
children: React.ChildrenArray<*>,
|
||||
onComponentRef: React.Ref<typeof Animated.View>,
|
||||
pointerEvents: string,
|
||||
style: any,
|
||||
};
|
||||
@ -19,9 +19,7 @@ type Props = {
|
||||
/**
|
||||
* Component that renders the scene as card for the <NavigationCardStack />.
|
||||
*/
|
||||
class Card extends React.Component<void, Props, void> {
|
||||
props: Props;
|
||||
|
||||
class Card extends React.Component<Props> {
|
||||
render() {
|
||||
const { children, pointerEvents, style } = this.props;
|
||||
return (
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import clamp from 'clamp';
|
||||
import {
|
||||
@ -20,7 +20,6 @@ import addNavigationHelpers from '../../addNavigationHelpers';
|
||||
import SceneView from '../SceneView';
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationLayout,
|
||||
NavigationScreenProp,
|
||||
NavigationScene,
|
||||
@ -31,6 +30,9 @@ import type {
|
||||
HeaderMode,
|
||||
ViewStyleProp,
|
||||
TransitionConfig,
|
||||
NavigationStackAction,
|
||||
NavigationRoute,
|
||||
NavigationComponent,
|
||||
} from '../../TypeDefinition';
|
||||
|
||||
import TransitionConfigs from './TransitionConfigs';
|
||||
@ -40,18 +42,16 @@ const emptyFunction = () => {};
|
||||
type Props = {
|
||||
screenProps?: {},
|
||||
headerMode: HeaderMode,
|
||||
headerComponent?: ReactClass<*>,
|
||||
headerComponent?: React.ComponentType<*>,
|
||||
mode: 'card' | 'modal',
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
router: NavigationRouter<
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationStackAction,
|
||||
NavigationStackScreenOptions
|
||||
>,
|
||||
cardStyle?: ViewStyleProp,
|
||||
onTransitionStart?: () => void,
|
||||
onTransitionEnd?: () => void,
|
||||
style?: any, // TODO: Remove
|
||||
/**
|
||||
* Optional custom animation when transitioning between screens.
|
||||
*/
|
||||
@ -59,7 +59,7 @@ type Props = {
|
||||
|
||||
// NavigationTransitionProps:
|
||||
layout: NavigationLayout,
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
position: Animated.Value,
|
||||
progress: Animated.Value,
|
||||
scenes: Array<NavigationScene>,
|
||||
@ -101,7 +101,7 @@ const animatedSubscribeValue = (animatedValue: Animated.Value) => {
|
||||
}
|
||||
};
|
||||
|
||||
class CardStack extends Component {
|
||||
class CardStack extends React.Component<Props> {
|
||||
/**
|
||||
* Used to identify the starting point of the position when the gesture starts, such that it can
|
||||
* be updated according to its relative position. This means that a card can effectively be
|
||||
@ -126,8 +126,6 @@ class CardStack extends Component {
|
||||
[key: string]: ?NavigationScreenDetails<NavigationStackScreenOptions>,
|
||||
} = {};
|
||||
|
||||
props: Props;
|
||||
|
||||
componentWillReceiveProps(props: Props) {
|
||||
if (props.screenProps !== this.props.screenProps) {
|
||||
this._screenDetails = {};
|
||||
@ -146,8 +144,10 @@ class CardStack extends Component {
|
||||
const { screenProps, navigation, router } = this.props;
|
||||
let screenDetails = this._screenDetails[scene.key];
|
||||
if (!screenDetails || screenDetails.state !== scene.route) {
|
||||
const screenNavigation = addNavigationHelpers({
|
||||
...navigation,
|
||||
const screenNavigation: NavigationScreenProp<
|
||||
NavigationRoute
|
||||
> = addNavigationHelpers({
|
||||
dispatch: navigation.dispatch,
|
||||
state: scene.route,
|
||||
});
|
||||
screenDetails = {
|
||||
@ -160,10 +160,7 @@ class CardStack extends Component {
|
||||
return screenDetails;
|
||||
};
|
||||
|
||||
_renderHeader(
|
||||
scene: NavigationScene,
|
||||
headerMode: HeaderMode
|
||||
): ?React.Element<*> {
|
||||
_renderHeader(scene: NavigationScene, headerMode: HeaderMode): ?React.Node {
|
||||
const { header } = this._getScreenDetails(scene).options;
|
||||
|
||||
if (typeof header !== 'undefined' && typeof header !== 'function') {
|
||||
@ -231,7 +228,7 @@ class CardStack extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
render(): React.Element<*> {
|
||||
render(): React.Node {
|
||||
let floatingHeader = null;
|
||||
const headerMode = this._getHeaderMode();
|
||||
if (headerMode === 'float') {
|
||||
@ -389,9 +386,9 @@ class CardStack extends Component {
|
||||
}
|
||||
|
||||
_renderInnerScene(
|
||||
SceneComponent: ReactClass<*>,
|
||||
SceneComponent: NavigationComponent,
|
||||
scene: NavigationScene
|
||||
): React.Element<any> {
|
||||
): React.Node {
|
||||
const { navigation } = this._getScreenDetails(scene);
|
||||
const { screenProps } = this.props;
|
||||
const headerMode = this._getHeaderMode();
|
||||
@ -430,7 +427,7 @@ class CardStack extends Component {
|
||||
);
|
||||
};
|
||||
|
||||
_renderCard = (scene: NavigationScene): React.Element<*> => {
|
||||
_renderCard = (scene: NavigationScene): React.Node => {
|
||||
const { screenInterpolator } = this._getTransitionConfig();
|
||||
const style =
|
||||
screenInterpolator && screenInterpolator({ ...this.props, scene });
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import * as React from 'react';
|
||||
import { NativeModules } from 'react-native';
|
||||
|
||||
import CardStack from './CardStack';
|
||||
@ -9,7 +9,6 @@ import Transitioner from '../Transitioner';
|
||||
import TransitionConfigs from './TransitionConfigs';
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationSceneRenderer,
|
||||
NavigationScreenProp,
|
||||
NavigationStackScreenOptions,
|
||||
@ -19,6 +18,7 @@ import type {
|
||||
HeaderMode,
|
||||
ViewStyleProp,
|
||||
TransitionConfig,
|
||||
NavigationStackAction,
|
||||
} from '../../TypeDefinition';
|
||||
|
||||
const NativeAnimatedModule =
|
||||
@ -28,30 +28,25 @@ type Props = {
|
||||
screenProps?: {},
|
||||
headerMode: HeaderMode,
|
||||
mode: 'card' | 'modal',
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
router: NavigationRouter<
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationStackAction,
|
||||
NavigationStackScreenOptions
|
||||
>,
|
||||
cardStyle?: ViewStyleProp,
|
||||
onTransitionStart?: () => void,
|
||||
onTransitionEnd?: () => void,
|
||||
style: ViewStyleProp,
|
||||
/**
|
||||
* Optional custom animation when transitioning between screens.
|
||||
*/
|
||||
transitionConfig?: () => TransitionConfig,
|
||||
};
|
||||
|
||||
type DefaultProps = {
|
||||
mode: 'card' | 'modal',
|
||||
};
|
||||
|
||||
class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
class CardStackTransitioner extends React.Component<Props> {
|
||||
_render: NavigationSceneRenderer;
|
||||
|
||||
static defaultProps: DefaultProps = {
|
||||
static defaultProps = {
|
||||
mode: 'card',
|
||||
};
|
||||
|
||||
@ -61,7 +56,6 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
configureTransition={this._configureTransition}
|
||||
navigation={this.props.navigation}
|
||||
render={this._render}
|
||||
style={this.props.style}
|
||||
onTransitionStart={this.props.onTransitionStart}
|
||||
onTransitionEnd={this.props.onTransitionEnd}
|
||||
/>
|
||||
@ -72,7 +66,7 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
// props for the new screen
|
||||
transitionProps: NavigationTransitionProps,
|
||||
// props for the old screen
|
||||
prevTransitionProps: NavigationTransitionProps
|
||||
prevTransitionProps: ?NavigationTransitionProps
|
||||
) => {
|
||||
const isModal = this.props.mode === 'modal';
|
||||
// Copy the object so we can assign useNativeDriver below
|
||||
@ -96,7 +90,7 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
return transitionSpec;
|
||||
};
|
||||
|
||||
_render = (props: NavigationTransitionProps): React.Element<*> => {
|
||||
_render = (props: NavigationTransitionProps): React.Node => {
|
||||
const {
|
||||
screenProps,
|
||||
headerMode,
|
||||
@ -104,7 +98,6 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
router,
|
||||
cardStyle,
|
||||
transitionConfig,
|
||||
style,
|
||||
} = this.props;
|
||||
return (
|
||||
<CardStack
|
||||
@ -114,7 +107,6 @@ class CardStackTransitioner extends Component<DefaultProps, Props, void> {
|
||||
router={router}
|
||||
cardStyle={cardStyle}
|
||||
transitionConfig={transitionConfig}
|
||||
style={style}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import invariant from '../../utils/invariant';
|
||||
|
||||
@ -17,16 +17,16 @@ const MIN_POSITION_OFFSET = 0.01;
|
||||
* `pointerEvents` property for a component whenever navigation position
|
||||
* changes.
|
||||
*/
|
||||
export default function create(Component: ReactClass<*>): ReactClass<*> {
|
||||
class Container extends React.Component<any, Props, any> {
|
||||
export default function create(
|
||||
Component: React.ComponentType<*>
|
||||
): React.ComponentType<*> {
|
||||
class Container extends React.Component<Props> {
|
||||
_component: any;
|
||||
_onComponentRef: (view: any) => void;
|
||||
_onPositionChange: (data: { value: number }) => void;
|
||||
_pointerEvents: string;
|
||||
_positionListener: ?AnimatedValueSubscription;
|
||||
|
||||
props: Props;
|
||||
|
||||
constructor(props: Props, context: any) {
|
||||
super(props, context);
|
||||
this._pointerEvents = this._computePointerEvents();
|
||||
|
@ -60,7 +60,7 @@ function defaultTransitionConfig(
|
||||
// props for the new screen
|
||||
transitionProps: NavigationTransitionProps,
|
||||
// props for the old screen
|
||||
prevTransitionProps: NavigationTransitionProps,
|
||||
prevTransitionProps: ?NavigationTransitionProps,
|
||||
// whether we're animating in/out a modal screen
|
||||
isModal: boolean
|
||||
): TransitionConfig {
|
||||
@ -86,13 +86,13 @@ function defaultTransitionConfig(
|
||||
function getTransitionConfig(
|
||||
transitionConfigurer?: (
|
||||
transitionProps: NavigationTransitionProps,
|
||||
prevTransitionProps: NavigationTransitionProps,
|
||||
prevTransitionProps: ?NavigationTransitionProps,
|
||||
isModal: boolean
|
||||
) => TransitionConfig,
|
||||
// props for the new screen
|
||||
transitionProps: NavigationTransitionProps,
|
||||
// props for the old screen
|
||||
prevTransitionProps: NavigationTransitionProps,
|
||||
prevTransitionProps: ?NavigationTransitionProps,
|
||||
isModal: boolean
|
||||
): TransitionConfig {
|
||||
const defaultConfig = defaultTransitionConfig(
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import { View, Text, Platform, StyleSheet } from 'react-native';
|
||||
|
||||
import TouchableItem from '../TouchableItem';
|
||||
@ -8,7 +8,6 @@ import TouchableItem from '../TouchableItem';
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationRoute,
|
||||
ViewStyleProp,
|
||||
TextStyleProp,
|
||||
@ -16,15 +15,15 @@ import type {
|
||||
import type { DrawerScene, DrawerItem } from './DrawerView.js';
|
||||
|
||||
type Props = {
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
items: Array<NavigationRoute>,
|
||||
activeItemKey?: string,
|
||||
activeTintColor?: string,
|
||||
activeBackgroundColor?: string,
|
||||
inactiveTintColor?: string,
|
||||
inactiveBackgroundColor?: string,
|
||||
getLabel: (scene: DrawerScene) => ?(React.Element<*> | string),
|
||||
renderIcon: (scene: DrawerScene) => ?React.Element<*>,
|
||||
getLabel: (scene: DrawerScene) => ?(React.Node | string),
|
||||
renderIcon: (scene: DrawerScene) => ?React.Node,
|
||||
onItemPress: (info: DrawerItem) => void,
|
||||
itemsContainerStyle?: ViewStyleProp,
|
||||
itemStyle?: ViewStyleProp,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import SceneView from '../SceneView';
|
||||
import withCachedChildNavigation from '../../withCachedChildNavigation';
|
||||
@ -9,30 +9,28 @@ import type {
|
||||
NavigationScreenProp,
|
||||
NavigationState,
|
||||
NavigationRoute,
|
||||
NavigationAction,
|
||||
NavigationRouter,
|
||||
NavigationDrawerScreenOptions,
|
||||
NavigationTabAction,
|
||||
} from '../../TypeDefinition';
|
||||
|
||||
type Props = {
|
||||
screenProps?: {},
|
||||
router: NavigationRouter<
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationTabAction,
|
||||
NavigationDrawerScreenOptions
|
||||
>,
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
childNavigationProps: {
|
||||
[key: string]: NavigationScreenProp<NavigationRoute, NavigationAction>,
|
||||
[key: string]: NavigationScreenProp<NavigationRoute>,
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Component that renders the child screen of the drawer.
|
||||
*/
|
||||
class DrawerScreen extends PureComponent<void, Props, void> {
|
||||
props: Props;
|
||||
|
||||
class DrawerScreen extends React.PureComponent<Props> {
|
||||
render() {
|
||||
const {
|
||||
router,
|
||||
|
@ -1,35 +1,36 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
import { StyleSheet, View } from 'react-native';
|
||||
|
||||
import withCachedChildNavigation from '../../withCachedChildNavigation';
|
||||
import NavigationActions from '../../NavigationActions';
|
||||
import invariant from '../../utils/invariant';
|
||||
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationRoute,
|
||||
NavigationAction,
|
||||
NavigationRouter,
|
||||
NavigationDrawerScreenOptions,
|
||||
NavigationState,
|
||||
NavigationStateRoute,
|
||||
ViewStyleProp,
|
||||
NavigationTabAction,
|
||||
} from '../../TypeDefinition';
|
||||
|
||||
import type { DrawerScene, DrawerItem } from './DrawerView';
|
||||
|
||||
type Navigation = NavigationScreenProp<NavigationStateRoute, NavigationAction>;
|
||||
|
||||
type Props = {
|
||||
router: NavigationRouter<
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationTabAction,
|
||||
NavigationDrawerScreenOptions
|
||||
>,
|
||||
navigation: Navigation,
|
||||
childNavigationProps: { [key: string]: Navigation },
|
||||
contentComponent: ReactClass<*>,
|
||||
navigation: NavigationScreenProp<NavigationStateRoute>,
|
||||
childNavigationProps: {
|
||||
[key: string]: NavigationScreenProp<NavigationRoute>,
|
||||
},
|
||||
contentComponent: ?React.ComponentType<*>,
|
||||
contentOptions?: {},
|
||||
screenProps?: {},
|
||||
style?: ViewStyleProp,
|
||||
@ -38,13 +39,17 @@ type Props = {
|
||||
/**
|
||||
* Component that renders the sidebar screen of the drawer.
|
||||
*/
|
||||
class DrawerSidebar extends PureComponent<void, Props, void> {
|
||||
class DrawerSidebar extends React.PureComponent<Props> {
|
||||
props: Props;
|
||||
|
||||
_getScreenOptions = (routeKey: string) => {
|
||||
const DrawerScreen = this.props.router.getComponentForRouteName(
|
||||
'DrawerClose'
|
||||
);
|
||||
invariant(
|
||||
DrawerScreen.router,
|
||||
'NavigationComponent with routeName DrawerClose should be a Navigator'
|
||||
);
|
||||
const { [routeKey]: childNavigation } = this.props.childNavigationProps;
|
||||
return DrawerScreen.router.getScreenOptions(
|
||||
childNavigation.state.index !== undefined // if the child screen is a StackRouter then always show the screen options of its first screen (see #1914)
|
||||
@ -99,7 +104,11 @@ class DrawerSidebar extends PureComponent<void, Props, void> {
|
||||
|
||||
render() {
|
||||
const ContentComponent = this.props.contentComponent;
|
||||
if (!ContentComponent) {
|
||||
return null;
|
||||
}
|
||||
const { state } = this.props.navigation;
|
||||
invariant(typeof state.index === 'number', 'should be set');
|
||||
return (
|
||||
<View style={[styles.container, this.props.style]}>
|
||||
<ContentComponent
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
import DrawerLayout from 'react-native-drawer-layout-polyfill';
|
||||
|
||||
import addNavigationHelpers from '../../addNavigationHelpers';
|
||||
@ -11,9 +11,10 @@ import type {
|
||||
NavigationRoute,
|
||||
NavigationRouter,
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationDrawerScreenOptions,
|
||||
ViewStyleProp,
|
||||
NavigationTabAction,
|
||||
NavigationStateRoute,
|
||||
} from '../../TypeDefinition';
|
||||
|
||||
export type DrawerScene = {
|
||||
@ -32,34 +33,37 @@ export type DrawerViewConfig = {
|
||||
drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open',
|
||||
drawerWidth?: number,
|
||||
drawerPosition?: 'left' | 'right',
|
||||
contentComponent?: ReactClass<*>,
|
||||
contentComponent?: React.ComponentType<*>,
|
||||
contentOptions?: {},
|
||||
style?: ViewStyleProp,
|
||||
useNativeAnimations?: boolean,
|
||||
drawerBackgroundColor?: String,
|
||||
drawerBackgroundColor?: string,
|
||||
screenProps?: {},
|
||||
};
|
||||
|
||||
type Props = DrawerViewConfig & {
|
||||
screenProps?: {},
|
||||
export type DrawerViewPropsExceptRouter = DrawerViewConfig & {
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
};
|
||||
|
||||
export type DrawerViewProps = DrawerViewPropsExceptRouter & {
|
||||
router: NavigationRouter<
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationTabAction,
|
||||
NavigationDrawerScreenOptions
|
||||
>,
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
};
|
||||
|
||||
/**
|
||||
* Component that renders the drawer.
|
||||
*/
|
||||
export default class DrawerView<T: *> extends PureComponent<void, Props, void> {
|
||||
props: Props;
|
||||
|
||||
export default class DrawerView<T: NavigationRoute> extends React.PureComponent<
|
||||
DrawerViewProps
|
||||
> {
|
||||
componentWillMount() {
|
||||
this._updateScreenNavigation(this.props.navigation);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps: Props) {
|
||||
componentWillReceiveProps(nextProps: DrawerViewProps) {
|
||||
if (
|
||||
this.props.navigation.state.index !== nextProps.navigation.state.index
|
||||
) {
|
||||
@ -79,7 +83,7 @@ export default class DrawerView<T: *> extends PureComponent<void, Props, void> {
|
||||
this._updateScreenNavigation(nextProps.navigation);
|
||||
}
|
||||
|
||||
_screenNavigationProp: NavigationScreenProp<T, NavigationAction>;
|
||||
_screenNavigationProp: NavigationScreenProp<NavigationStateRoute>;
|
||||
|
||||
_handleDrawerOpen = () => {
|
||||
const { navigation } = this.props;
|
||||
@ -98,9 +102,10 @@ export default class DrawerView<T: *> extends PureComponent<void, Props, void> {
|
||||
};
|
||||
|
||||
_updateScreenNavigation = (
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>
|
||||
navigation: NavigationScreenProp<NavigationState>
|
||||
) => {
|
||||
const navigationState = navigation.state.routes.find(
|
||||
// $FlowFixMe there's no way type the specific shape of the nav state
|
||||
const navigationState: NavigationStateRoute = navigation.state.routes.find(
|
||||
(route: *) => route.routeName === 'DrawerClose'
|
||||
);
|
||||
if (
|
||||
@ -110,14 +115,12 @@ export default class DrawerView<T: *> extends PureComponent<void, Props, void> {
|
||||
return;
|
||||
}
|
||||
this._screenNavigationProp = addNavigationHelpers({
|
||||
...navigation,
|
||||
dispatch: navigation.dispatch,
|
||||
state: navigationState,
|
||||
});
|
||||
};
|
||||
|
||||
_getNavigationState = (
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>
|
||||
) => {
|
||||
_getNavigationState = (navigation: NavigationScreenProp<NavigationState>) => {
|
||||
const navigationState = navigation.state.routes.find(
|
||||
(route: *) => route.routeName === 'DrawerClose'
|
||||
);
|
||||
|
@ -2,9 +2,15 @@
|
||||
|
||||
'no babel-plugin-flow-react-proptypes';
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import { Animated, Platform, StyleSheet, View } from 'react-native';
|
||||
import {
|
||||
Animated,
|
||||
Platform,
|
||||
StyleSheet,
|
||||
View,
|
||||
ViewPropTypes,
|
||||
} from 'react-native';
|
||||
|
||||
import HeaderTitle from './HeaderTitle';
|
||||
import HeaderBackButton from './HeaderBackButton';
|
||||
@ -22,13 +28,14 @@ type SceneProps = {
|
||||
scene: NavigationScene,
|
||||
position: Animated.Value,
|
||||
progress: Animated.Value,
|
||||
style?: ViewPropTypes.style,
|
||||
};
|
||||
|
||||
type SubViewRenderer<T> = (props: SceneProps) => ?React.Element<T>;
|
||||
type SubViewRenderer<T> = (props: SceneProps) => ?React.Node;
|
||||
|
||||
type SubViewName = 'left' | 'title' | 'right';
|
||||
|
||||
type HeaderState = {
|
||||
type State = {
|
||||
widths: {
|
||||
[key: string]: number,
|
||||
},
|
||||
@ -38,7 +45,8 @@ const APPBAR_HEIGHT = Platform.OS === 'ios' ? 44 : 56;
|
||||
const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : 0;
|
||||
const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 56;
|
||||
|
||||
class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
type Props = HeaderProps & { isLandscape: boolean };
|
||||
class Header extends React.PureComponent<Props, State> {
|
||||
static HEIGHT = APPBAR_HEIGHT + STATUSBAR_HEIGHT;
|
||||
|
||||
state = {
|
||||
@ -82,7 +90,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
this.props.navigation.goBack(null);
|
||||
};
|
||||
|
||||
_renderTitleComponent = (props: SceneProps): ?React.Element<*> => {
|
||||
_renderTitleComponent = (props: SceneProps): ?React.Node => {
|
||||
const details = this.props.getScreenDetails(props.scene);
|
||||
const headerTitle = details.options.headerTitle;
|
||||
if (headerTitle && typeof headerTitle !== 'string') {
|
||||
@ -119,7 +127,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
);
|
||||
};
|
||||
|
||||
_renderLeftComponent = (props: SceneProps): ?React.Element<*> => {
|
||||
_renderLeftComponent = (props: SceneProps): ?React.Node => {
|
||||
const options = this.props.getScreenDetails(props.scene).options;
|
||||
if (typeof options.headerLeft !== 'undefined') {
|
||||
return options.headerLeft;
|
||||
@ -147,13 +155,13 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
);
|
||||
};
|
||||
|
||||
_renderRightComponent = (props: SceneProps): ?React.Element<*> => {
|
||||
_renderRightComponent = (props: SceneProps): ?React.Node => {
|
||||
const details = this.props.getScreenDetails(props.scene);
|
||||
const { headerRight } = details.options;
|
||||
return headerRight || null;
|
||||
};
|
||||
|
||||
_renderLeft(props: SceneProps): ?React.Element<*> {
|
||||
_renderLeft(props: SceneProps): ?React.Node {
|
||||
return this._renderSubView(
|
||||
props,
|
||||
'left',
|
||||
@ -162,7 +170,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
);
|
||||
}
|
||||
|
||||
_renderTitle(props: SceneProps, options: *): ?React.Element<*> {
|
||||
_renderTitle(props: SceneProps, options: *): ?React.Node {
|
||||
const style = {};
|
||||
|
||||
if (Platform.OS === 'android') {
|
||||
@ -189,7 +197,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
);
|
||||
}
|
||||
|
||||
_renderRight(props: SceneProps): ?React.Element<*> {
|
||||
_renderRight(props: SceneProps): ?React.Node {
|
||||
return this._renderSubView(
|
||||
props,
|
||||
'right',
|
||||
@ -203,7 +211,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
name: SubViewName,
|
||||
renderer: SubViewRenderer<T>,
|
||||
styleInterpolator: NavigationStyleInterpolator
|
||||
): ?React.Element<*> {
|
||||
): ?React.Node {
|
||||
const { scene } = props;
|
||||
const { index, isStale, key } = scene;
|
||||
|
||||
@ -243,7 +251,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
);
|
||||
}
|
||||
|
||||
_renderHeader(props: SceneProps): React.Element<*> {
|
||||
_renderHeader(props: SceneProps): React.Node {
|
||||
const left = this._renderLeft(props);
|
||||
const right = this._renderRight(props);
|
||||
const title = this._renderTitle(props, {
|
||||
@ -290,7 +298,6 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
position,
|
||||
screenProps,
|
||||
progress,
|
||||
style,
|
||||
isLandscape,
|
||||
...rest
|
||||
} = this.props;
|
||||
@ -305,7 +312,6 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
height: APPBAR_HEIGHT + landscapeAwareStatusBarHeight,
|
||||
},
|
||||
headerStyle,
|
||||
style,
|
||||
];
|
||||
|
||||
return (
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import {
|
||||
I18nManager,
|
||||
Image,
|
||||
@ -24,17 +24,11 @@ type Props = {
|
||||
width?: ?number,
|
||||
};
|
||||
|
||||
type DefaultProps = {
|
||||
pressColorAndroid: string,
|
||||
tintColor: ?string,
|
||||
truncatedTitle: ?string,
|
||||
};
|
||||
|
||||
type State = {
|
||||
initialTextWidth?: number,
|
||||
};
|
||||
|
||||
class HeaderBackButton extends React.PureComponent<DefaultProps, Props, State> {
|
||||
class HeaderBackButton extends React.PureComponent<Props, State> {
|
||||
static defaultProps = {
|
||||
pressColorAndroid: 'rgba(0, 0, 0, .32)',
|
||||
tintColor: Platform.select({
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import { Text, View, Platform, StyleSheet, Animated } from 'react-native';
|
||||
|
||||
@ -10,7 +10,7 @@ type AnimatedTextStyleProp = $PropertyType<
|
||||
>;
|
||||
|
||||
type Props = {
|
||||
children: React$Element<*>,
|
||||
children: React.ChildrenArray<*>,
|
||||
selectionColor?: string | number,
|
||||
style?: AnimatedTextStyleProp,
|
||||
};
|
||||
|
@ -1,28 +1,25 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
import propTypes from 'prop-types';
|
||||
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationComponent,
|
||||
NavigationRoute,
|
||||
NavigationAction,
|
||||
NavigationNavigatorProps,
|
||||
} from '../TypeDefinition';
|
||||
|
||||
type Props<O> = {
|
||||
type Props = {
|
||||
screenProps?: {},
|
||||
navigation: NavigationScreenProp<NavigationRoute, NavigationAction>,
|
||||
component: ReactClass<NavigationNavigatorProps<O, NavigationRoute>>,
|
||||
navigation: NavigationScreenProp<*>,
|
||||
component: NavigationComponent,
|
||||
};
|
||||
|
||||
export default class SceneView<O> extends PureComponent<void, Props<O>, void> {
|
||||
export default class SceneView extends React.PureComponent<Props> {
|
||||
static childContextTypes = {
|
||||
navigation: propTypes.object.isRequired,
|
||||
};
|
||||
|
||||
props: Props<O>;
|
||||
|
||||
getChildContext() {
|
||||
return {
|
||||
navigation: this.props.navigation,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
import {
|
||||
Animated,
|
||||
TouchableWithoutFeedback,
|
||||
@ -12,7 +12,6 @@ import TabBarIcon from './TabBarIcon';
|
||||
import withOrientation from '../withOrientation';
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationRoute,
|
||||
NavigationState,
|
||||
NavigationScreenProp,
|
||||
@ -22,16 +21,6 @@ import type {
|
||||
|
||||
import type { TabScene } from './TabView';
|
||||
|
||||
type DefaultProps = {
|
||||
activeTintColor: string,
|
||||
activeBackgroundColor: string,
|
||||
inactiveTintColor: string,
|
||||
inactiveBackgroundColor: string,
|
||||
showLabel: boolean,
|
||||
showIcon: boolean,
|
||||
allowFontScaling: boolean,
|
||||
};
|
||||
|
||||
type Props = {
|
||||
activeTintColor: string,
|
||||
activeBackgroundColor: string,
|
||||
@ -41,28 +30,28 @@ type Props = {
|
||||
showIcon: boolean,
|
||||
allowFontScaling: boolean,
|
||||
position: Animated.Value,
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
jumpToIndex: (index: number) => void,
|
||||
getLabel: (scene: TabScene) => ?(React.Element<*> | string),
|
||||
getLabel: (scene: TabScene) => ?(React.Node | string),
|
||||
getOnPress: (
|
||||
scene: TabScene
|
||||
) => (scene: TabScene, jumpToIndex: (index: number) => void) => void,
|
||||
getTestIDProps: (scene: TabScene) => (scene: TabScene) => any,
|
||||
renderIcon: (scene: TabScene) => React.Element<*>,
|
||||
renderIcon: (scene: TabScene) => React.Node,
|
||||
style?: ViewStyleProp,
|
||||
labelStyle?: TextStyleProp,
|
||||
tabStyle?: ViewStyleProp,
|
||||
showIcon?: boolean,
|
||||
isLandscape?: boolean,
|
||||
isLandscape: boolean,
|
||||
};
|
||||
|
||||
const majorVersion = parseInt(Platform.Version, 10);
|
||||
const isIos = Platform.OS === 'ios';
|
||||
const useHorizontalTabs = majorVersion >= 11 && isIos;
|
||||
|
||||
class TabBarBottom extends PureComponent<DefaultProps, Props, void> {
|
||||
class TabBarBottom extends React.PureComponent<Props> {
|
||||
// See https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/UIKitUICatalog/UITabBar.html
|
||||
static defaultProps: DefaultProps = {
|
||||
static defaultProps = {
|
||||
activeTintColor: '#3478f6', // Default active tint color in iOS 10
|
||||
activeBackgroundColor: 'transparent',
|
||||
inactiveTintColor: '#929292', // Default inactive tint color in iOS 10
|
||||
|
@ -1,10 +1,9 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
import { Animated, View, StyleSheet } from 'react-native';
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationState,
|
||||
NavigationScreenProp,
|
||||
ViewStyleProp,
|
||||
@ -17,14 +16,12 @@ type Props = {
|
||||
inactiveTintColor: string,
|
||||
scene: TabScene,
|
||||
position: Animated.Value,
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
renderIcon: (scene: TabScene) => React.Element<*>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
renderIcon: (scene: TabScene) => React.Node,
|
||||
style?: ViewStyleProp,
|
||||
};
|
||||
|
||||
export default class TabBarIcon extends PureComponent<void, Props, void> {
|
||||
props: Props;
|
||||
|
||||
export default class TabBarIcon extends React.PureComponent<Props> {
|
||||
render() {
|
||||
const {
|
||||
position,
|
||||
|
@ -1,12 +1,11 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
import { Animated, StyleSheet } from 'react-native';
|
||||
import { TabBar } from 'react-native-tab-view';
|
||||
import TabBarIcon from './TabBarIcon';
|
||||
|
||||
import type {
|
||||
NavigationAction,
|
||||
NavigationScreenProp,
|
||||
NavigationState,
|
||||
ViewStyleProp,
|
||||
@ -15,15 +14,6 @@ import type {
|
||||
|
||||
import type { TabScene } from './TabView';
|
||||
|
||||
type DefaultProps = {
|
||||
activeTintColor: string,
|
||||
inactiveTintColor: string,
|
||||
showIcon: boolean,
|
||||
showLabel: boolean,
|
||||
upperCaseLabel: boolean,
|
||||
allowFontScaling: boolean,
|
||||
};
|
||||
|
||||
type Props = {
|
||||
activeTintColor: string,
|
||||
inactiveTintColor: string,
|
||||
@ -32,23 +22,19 @@ type Props = {
|
||||
upperCaseLabel: boolean,
|
||||
allowFontScaling: boolean,
|
||||
position: Animated.Value,
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
jumpToIndex: (index: number) => void,
|
||||
getLabel: (scene: TabScene) => ?(React.Element<*> | string),
|
||||
getLabel: (scene: TabScene) => ?(React.Node | string),
|
||||
getOnPress: (
|
||||
scene: TabScene
|
||||
) => (scene: TabScene, jumpToIndex: (index: number) => void) => void,
|
||||
renderIcon: (scene: TabScene) => React.Element<*>,
|
||||
renderIcon: (scene: TabScene) => React.Node,
|
||||
labelStyle?: TextStyleProp,
|
||||
iconStyle?: ViewStyleProp,
|
||||
};
|
||||
|
||||
export default class TabBarTop extends PureComponent<
|
||||
DefaultProps,
|
||||
Props,
|
||||
void
|
||||
> {
|
||||
static defaultProps: DefaultProps = {
|
||||
export default class TabBarTop extends React.PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
activeTintColor: '#fff',
|
||||
inactiveTintColor: '#fff',
|
||||
showIcon: false,
|
||||
@ -57,8 +43,6 @@ export default class TabBarTop extends PureComponent<
|
||||
allowFontScaling: true,
|
||||
};
|
||||
|
||||
props: Props;
|
||||
|
||||
_renderLabel = (scene: TabScene) => {
|
||||
const {
|
||||
position,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
import { View, StyleSheet, Platform } from 'react-native';
|
||||
import { TabViewAnimated, TabViewPagerPan } from 'react-native-tab-view';
|
||||
import type { Layout } from 'react-native-tab-view/src/TabViewTypeDefinitions';
|
||||
@ -10,14 +10,14 @@ import withCachedChildNavigation from '../../withCachedChildNavigation';
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationRoute,
|
||||
NavigationAction,
|
||||
NavigationState,
|
||||
NavigationRouter,
|
||||
NavigationTabScreenOptions,
|
||||
NavigationStackAction,
|
||||
} from '../../TypeDefinition';
|
||||
|
||||
export type TabViewConfig = {
|
||||
tabBarComponent?: ReactClass<*>,
|
||||
tabBarComponent?: React.ComponentType<*>,
|
||||
tabBarPosition?: 'top' | 'bottom',
|
||||
tabBarOptions?: {},
|
||||
swipeEnabled?: boolean,
|
||||
@ -34,27 +34,27 @@ export type TabScene = {
|
||||
};
|
||||
|
||||
type Props = {
|
||||
tabBarComponent?: ReactClass<*>,
|
||||
tabBarComponent?: React.ComponentType<*>,
|
||||
tabBarPosition?: 'top' | 'bottom',
|
||||
tabBarOptions?: {},
|
||||
swipeEnabled?: boolean,
|
||||
animationEnabled?: boolean,
|
||||
lazy?: boolean,
|
||||
initialLayout?: Layout,
|
||||
initialLayout: Layout,
|
||||
|
||||
screenProps?: {},
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
router: NavigationRouter<
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationStackAction,
|
||||
NavigationTabScreenOptions
|
||||
>,
|
||||
childNavigationProps: {
|
||||
[key: string]: NavigationScreenProp<NavigationRoute, NavigationAction>,
|
||||
[key: string]: NavigationScreenProp<NavigationRoute>,
|
||||
},
|
||||
};
|
||||
|
||||
class TabView extends PureComponent<$Shape<Props>, Props, void> {
|
||||
class TabView extends React.PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
// fix for https://github.com/react-native-community/react-native-tab-view/issues/312
|
||||
initialLayout: Platform.select({
|
||||
@ -62,8 +62,6 @@ class TabView extends PureComponent<$Shape<Props>, Props, void> {
|
||||
}),
|
||||
};
|
||||
|
||||
props: Props;
|
||||
|
||||
_handlePageChanged = (index: number) => {
|
||||
const { navigation } = this.props;
|
||||
navigation.navigate(navigation.state.routes[index].routeName);
|
||||
|
@ -9,7 +9,7 @@
|
||||
* On iOS you can pass the props of TouchableOpacity, on Android pass the props
|
||||
* of TouchableNativeFeedback.
|
||||
*/
|
||||
import React, { Component, Children } from 'react';
|
||||
import * as React from 'react';
|
||||
import {
|
||||
Platform,
|
||||
TouchableNativeFeedback,
|
||||
@ -21,24 +21,16 @@ import type { ViewStyleProp } from '../TypeDefinition';
|
||||
const ANDROID_VERSION_LOLLIPOP = 21;
|
||||
|
||||
type Props = {
|
||||
onPress: () => void,
|
||||
onPress?: () => void,
|
||||
delayPressIn?: number,
|
||||
borderless?: boolean,
|
||||
pressColor?: string,
|
||||
activeOpacity?: number,
|
||||
children?: React.Element<*>,
|
||||
children?: React.ChildrenArray<*>,
|
||||
style?: ViewStyleProp,
|
||||
};
|
||||
|
||||
type DefaultProps = {
|
||||
pressColor: string,
|
||||
};
|
||||
|
||||
export default class TouchableItem extends Component<
|
||||
DefaultProps,
|
||||
Props,
|
||||
void
|
||||
> {
|
||||
export default class TouchableItem extends React.Component<Props> {
|
||||
static defaultProps = {
|
||||
borderless: false,
|
||||
pressColor: 'rgba(0, 0, 0, .32)',
|
||||
@ -68,7 +60,7 @@ export default class TouchableItem extends Component<
|
||||
)}
|
||||
>
|
||||
<View style={this.props.style}>
|
||||
{Children.only(this.props.children)}
|
||||
{React.Children.only(this.props.children)}
|
||||
</View>
|
||||
</TouchableNativeFeedback>
|
||||
);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import { Animated, Easing, StyleSheet, View } from 'react-native';
|
||||
|
||||
@ -12,7 +12,6 @@ import type {
|
||||
NavigationLayout,
|
||||
NavigationScene,
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
NavigationScreenProp,
|
||||
NavigationTransitionProps,
|
||||
NavigationTransitionSpec,
|
||||
@ -23,14 +22,13 @@ type Props = {
|
||||
transitionProps: NavigationTransitionProps,
|
||||
prevTransitionProps: ?NavigationTransitionProps
|
||||
) => NavigationTransitionSpec,
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
onTransitionEnd?: (...args: Array<mixed>) => void,
|
||||
onTransitionStart?: (...args: Array<mixed>) => void,
|
||||
render: (
|
||||
transitionProps: NavigationTransitionProps,
|
||||
prevTransitionProps: ?NavigationTransitionProps
|
||||
) => any,
|
||||
style?: any,
|
||||
) => React.Node,
|
||||
};
|
||||
|
||||
type State = {
|
||||
@ -47,7 +45,7 @@ const DefaultTransitionSpec = ({
|
||||
timing: Animated.timing,
|
||||
}: NavigationTransitionSpec);
|
||||
|
||||
class Transitioner extends React.Component<*, Props, State> {
|
||||
class Transitioner extends React.Component<Props, State> {
|
||||
_onLayout: (event: any) => void;
|
||||
_onTransitionEnd: () => void;
|
||||
_prevTransitionProps: ?NavigationTransitionProps;
|
||||
@ -60,9 +58,6 @@ class Transitioner extends React.Component<*, Props, State> {
|
||||
indexHasChanged: boolean,
|
||||
};
|
||||
|
||||
props: Props;
|
||||
state: State;
|
||||
|
||||
constructor(props: Props, context: any) {
|
||||
super(props, context);
|
||||
|
||||
@ -189,7 +184,7 @@ class Transitioner extends React.Component<*, Props, State> {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View onLayout={this._onLayout} style={[styles.main, this.props.style]}>
|
||||
<View onLayout={this._onLayout} style={[styles.main]}>
|
||||
{this.props.render(this._transitionProps, this._prevTransitionProps)}
|
||||
</View>
|
||||
);
|
||||
|
@ -209,6 +209,7 @@ exports[`TabBarBottom renders successfully 1`] = `
|
||||
<View
|
||||
navigation={
|
||||
Object {
|
||||
"dispatch": undefined,
|
||||
"goBack": [Function],
|
||||
"navigate": [Function],
|
||||
"setParams": [Function],
|
||||
|
@ -1,32 +1,29 @@
|
||||
/* @flow */
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import propTypes from 'prop-types';
|
||||
import hoistStatics from 'hoist-non-react-statics';
|
||||
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationState,
|
||||
NavigationAction,
|
||||
} from '../TypeDefinition';
|
||||
import type { NavigationScreenProp, NavigationState } from '../TypeDefinition';
|
||||
|
||||
type Context = {
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
};
|
||||
|
||||
type InjectedProps = {
|
||||
navigation: NavigationScreenProp<NavigationState, NavigationAction>,
|
||||
navigation: NavigationScreenProp<NavigationState>,
|
||||
};
|
||||
|
||||
export default function withNavigation<T: *>(
|
||||
Component: ReactClass<T & InjectedProps>
|
||||
export default function withNavigation<T: {}>(
|
||||
Component: React.ComponentType<T & InjectedProps>
|
||||
) {
|
||||
const componentWithNavigation = (props: T, { navigation }: Context) => (
|
||||
<Component {...props} navigation={navigation} />
|
||||
);
|
||||
|
||||
componentWithNavigation.displayName = `withNavigation(${Component.displayName ||
|
||||
Component.name})`;
|
||||
// $FlowFixMe StatelessFunctionalComponent missing displayName Flow < 0.54.0
|
||||
const displayName: string = Component.displayName || Component.name;
|
||||
componentWithNavigation.displayName = `withNavigation(${displayName})`;
|
||||
|
||||
componentWithNavigation.contextTypes = {
|
||||
navigation: propTypes.object.isRequired,
|
||||
|
@ -1,6 +1,6 @@
|
||||
// @flow
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
import { Dimensions } from 'react-native';
|
||||
import hoistNonReactStatic from 'hoist-non-react-statics';
|
||||
|
||||
@ -22,10 +22,10 @@ export const isOrientationLandscape = ({
|
||||
height,
|
||||
}: WindowDimensions): boolean => width > height;
|
||||
|
||||
export default function<T: *>(WrappedComponent: ReactClass<T & InjectedProps>) {
|
||||
class withOrientation extends React.Component<void, T, State> {
|
||||
state: State;
|
||||
|
||||
export default function<T: {}>(
|
||||
WrappedComponent: React.ComponentType<T & InjectedProps>
|
||||
) {
|
||||
class withOrientation extends React.Component<T, State> {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
|
@ -1,28 +1,34 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { PureComponent } from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import addNavigationHelpers from './addNavigationHelpers';
|
||||
|
||||
import type { NavigationScreenProp, NavigationAction } from './TypeDefinition';
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationState,
|
||||
NavigationRoute,
|
||||
} from './TypeDefinition';
|
||||
|
||||
type InjectedProps<N> = {
|
||||
type InputProps = {
|
||||
+navigation: NavigationScreenProp<NavigationState>,
|
||||
};
|
||||
type OutputProps = {
|
||||
childNavigationProps: {
|
||||
[key: string]: N,
|
||||
+[key: string]: NavigationScreenProp<NavigationRoute>,
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* HOC which caches the child navigation items.
|
||||
*/
|
||||
export default function withCachedChildNavigation<T: *, N: *>(
|
||||
Comp: ReactClass<T & InjectedProps<N>>
|
||||
): ReactClass<T> {
|
||||
return class extends PureComponent {
|
||||
static displayName = `withCachedChildNavigation(${Comp.displayName ||
|
||||
Comp.name})`;
|
||||
|
||||
props: T;
|
||||
export default function withCachedChildNavigation<T: InputProps>(
|
||||
Comp: React.ComponentType<OutputProps & T>
|
||||
): React.ComponentType<T> {
|
||||
// $FlowFixMe StatelessFunctionalComponent missing displayName Flow < 0.54.0
|
||||
const displayName: string = Comp.displayName || Comp.name;
|
||||
return class extends React.PureComponent<T> {
|
||||
static displayName = `withCachedChildNavigation(${displayName})`;
|
||||
|
||||
componentWillMount() {
|
||||
this._updateNavigationProps(this.props.navigation);
|
||||
@ -33,11 +39,11 @@ export default function withCachedChildNavigation<T: *, N: *>(
|
||||
}
|
||||
|
||||
_childNavigationProps: {
|
||||
[key: string]: NavigationScreenProp<N, NavigationAction>,
|
||||
[key: string]: NavigationScreenProp<NavigationRoute>,
|
||||
};
|
||||
|
||||
_updateNavigationProps = (
|
||||
navigation: NavigationScreenProp<N, NavigationAction>
|
||||
navigation: NavigationScreenProp<NavigationState>
|
||||
) => {
|
||||
// Update props for each child route
|
||||
if (!this._childNavigationProps) {
|
||||
@ -49,7 +55,7 @@ export default function withCachedChildNavigation<T: *, N: *>(
|
||||
return;
|
||||
}
|
||||
this._childNavigationProps[route.key] = addNavigationHelpers({
|
||||
...navigation,
|
||||
dispatch: navigation.dispatch,
|
||||
state: route,
|
||||
});
|
||||
});
|
||||
|
@ -15,7 +15,11 @@ import {
|
||||
createNavigator,
|
||||
} from 'react-navigation';
|
||||
|
||||
import type { NavigationScreenComponent } from 'react-navigation/src/TypeDefinition';
|
||||
import type {
|
||||
NavigationScreenComponent,
|
||||
NavigationScreenProp,
|
||||
NavigationRoute,
|
||||
} from 'react-navigation/src/TypeDefinition';
|
||||
|
||||
type ScreenOptions = {
|
||||
linkName: string,
|
||||
@ -44,11 +48,11 @@ type DocPageConfig = {
|
||||
|
||||
const createDocPage = (
|
||||
config: DocPageConfig
|
||||
): (() => NavigationScreenComponent<*, ScreenOptions>) => {
|
||||
const Page: NavigationScreenComponent<*, ScreenOptions> = ({
|
||||
): NavigationScreenComponent<*, *> => {
|
||||
const Page = ({
|
||||
navigation,
|
||||
}: {
|
||||
navigation: any,
|
||||
navigation: NavigationScreenProp<NavigationRoute>,
|
||||
}) => <MDPage docPath={config.doc} navigation={navigation} />;
|
||||
Page.navigationOptions = {
|
||||
doc: config.doc,
|
||||
|
@ -2,10 +2,11 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
export default class PhoneGraphic extends Component {
|
||||
props: { sources: { android: string, iphone: string } };
|
||||
type Props = { sources: { android: string, iphone: string } };
|
||||
type State = { activeExample: string };
|
||||
export default class PhoneGraphic extends React.Component<Props, State> {
|
||||
state = { activeExample: this.props.alt ? 'android' : 'iphone' };
|
||||
render() {
|
||||
const { activeExample } = this.state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user