Skip to content

Commit ebf1e2e

Browse files
author
Adam Miskiewicz
committed
Update NavigationPlayground to 0.45.1, add stub react-nav flow definition
1 parent 9436d03 commit ebf1e2e

17 files changed

+4779
-866
lines changed

examples/NavigationPlayground/.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"presets": ["babel-preset-expo"],
3+
"plugins": [
4+
["module-resolver", {
5+
"alias": {
6+
"react-native": "./node_modules/react-native",
7+
"react": "./node_modules/react"
8+
}
9+
}]
10+
],
311
"env": {
412
"development": {
513
"plugins": ["transform-react-jsx-source"]

examples/NavigationPlayground/.flowconfig

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,24 @@
3030
; Ignore react-native-fbads dependency of the expo sdk
3131
.*/node_modules/react-native-fbads/*
3232

33+
.*/node_modules/react-native-tab-view/.*
34+
35+
; Ignore react-native
36+
.*/node_modules/react-native/.*
37+
38+
.*/react-navigation/lib-rn/.*
39+
.*/react-navigation/lib/.*
40+
.*/react-navigation/src/.*
41+
.*/react-navigation/node_modules/.*
42+
43+
.*/react-navigation/examples/ReduxExample/.*
44+
.*/react-navigation/website/.*
45+
3346
[include]
3447

3548
[libs]
36-
node_modules/react-native/Libraries/react-native/react-native-interface.js
37-
node_modules/react-native/flow
38-
flow/
49+
../../flow-typed/react-native.js
50+
../../flow/react-navigation.js
3951

4052
[options]
4153
module.system=haste
@@ -58,6 +70,3 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
5870
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
5971

6072
unsafe.enable_getters_and_setters=true
61-
62-
[version]
63-
^0.40.0

examples/NavigationPlayground/app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"icon": "./assets/icons/react-navigation.png",
1313
"hideExponentText": false
1414
},
15-
"sdkVersion": "16.0.0",
16-
"entryPoint": "./examples/NavigationPlayground/node_modules/react-native-scripts/build/bin/crna-entry.js",
15+
"sdkVersion": "18.0.0",
16+
"entryPoint": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
1717
"packagerOpts": {
1818
"projectRoots": "",
1919
"assetExts": [
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// flow-typed signature: 02359da7064195804e62c853de1fc44e
2+
// flow-typed version: <<STUB>>/babel-jest_v^20.0.1/flow_v0.49.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* 'babel-jest'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module 'babel-jest' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module 'babel-jest/build/index' {
26+
declare module.exports: any;
27+
}
28+
29+
// Filename aliases
30+
declare module 'babel-jest/build/index.js' {
31+
declare module.exports: $Exports<'babel-jest/build/index'>;
32+
}

0 commit comments

Comments
 (0)