Skip to content

Commit fa2aad7

Browse files
authored
update example app (#25)
* update example app * add readme
1 parent c305ab5 commit fa2aad7

File tree

6 files changed

+1203
-941
lines changed

6 files changed

+1203
-941
lines changed

example/navbar-buttons-demo/.flowconfig

Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,40 @@
33
.*/*[.]android.js
44

55
; Ignore templates for 'react-native init'
6-
<PROJECT_ROOT>/node_modules/react-native/local-cli/templates/.*
7-
8-
; Ignore RN jest
9-
<PROJECT_ROOT>/node_modules/react-native/jest/.*
10-
11-
; Ignore RNTester
12-
<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
13-
14-
; Ignore the website subdir
15-
<PROJECT_ROOT>/node_modules/react-native/website/.*
6+
.*/local-cli/templates/.*
167

178
; Ignore the Dangerfile
18-
<PROJECT_ROOT>/node_modules/react-native/danger/dangerfile.js
19-
20-
; Ignore Fbemitter
21-
<PROJECT_ROOT>/node_modules/fbemitter/.*
9+
<PROJECT_ROOT>/bots/dangerfile.js
2210

2311
; Ignore "BUCK" generated dirs
24-
<PROJECT_ROOT>/node_modules/react-native/\.buckd/
12+
<PROJECT_ROOT>/\.buckd/
2513

2614
; Ignore unexpected extra "@providesModule"
2715
.*/node_modules/.*/node_modules/fbjs/.*
2816

17+
; Ignore duplicate module providers
18+
; For RN Apps installed via npm, "Libraries" folder is inside
19+
; "node_modules/react-native" but in the source repo it is in the root
20+
.*/Libraries/react-native/React.js
21+
2922
; Ignore polyfills
30-
<PROJECT_ROOT>/node_modules/react-native/Libraries/polyfills/.*
23+
.*/Libraries/polyfills/.*
3124

32-
; Ignore various node_modules
33-
<PROJECT_ROOT>/node_modules/react-native-gesture-handler/.*
34-
<PROJECT_ROOT>/node_modules/expo/.*
35-
<PROJECT_ROOT>/node_modules/react-navigation/.*
36-
<PROJECT_ROOT>/node_modules/xdl/.*
37-
<PROJECT_ROOT>/node_modules/reqwest/.*
38-
<PROJECT_ROOT>/node_modules/metro-bundler/.*
25+
; Ignore metro
26+
.*/node_modules/metro/.*
3927

4028
[include]
4129

4230
[libs]
43-
node_modules/react-native/Libraries/react-native/react-native-interface.js
44-
node_modules/react-native/flow/
45-
node_modules/expo/flow/
31+
Libraries/react-native/react-native-interface.js
32+
flow/
33+
flow-github/
4634

4735
[options]
4836
emoji=true
4937

5038
module.system=haste
5139

52-
module.file_ext=.js
53-
module.file_ext=.jsx
54-
module.file_ext=.json
55-
module.file_ext=.ios.js
56-
5740
munge_underscores=true
5841

5942
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'
@@ -62,15 +45,11 @@ suppress_type=$FlowIssue
6245
suppress_type=$FlowFixMe
6346
suppress_type=$FlowFixMeProps
6447
suppress_type=$FlowFixMeState
65-
suppress_type=$FixMe
6648

67-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
68-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
49+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native_oss|react_native_fb][a-z,_]*\\)?)\\)
50+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native_oss|react_native_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
6951
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
7052
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
7153

72-
unsafe.enable_getters_and_setters=true
73-
esproposal.decorators=ignore
74-
7554
[version]
76-
^0.56.0
55+
^0.67.0

example/navbar-buttons-demo/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import {
99
HomeScreen,
1010
UsageWithCustomOverflow,
1111
} from './screens';
12-
import { StackNavigator } from 'react-navigation';
12+
import { createStackNavigator } from 'react-navigation';
1313
import React from 'react';
1414

1515
// just for custom overflow menu onPress action
1616
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
1717

18-
const RootStack = StackNavigator({
18+
const RootStack = createStackNavigator({
1919
HomeScreen: {
2020
screen: HomeScreen,
2121
},

example/navbar-buttons-demo/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
### Demo app
22

33
Available via expo [here](https://expo.io/@vonovak/navbar-buttons-demo).
4-
5-
Run by clonning, and running `yarn` followed by `exp start`.
4+
Run by clonning, and running `yarn` followed by `exp start`.

example/navbar-buttons-demo/app.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "This project is really great.",
55
"slug": "navbar-buttons-demo",
66
"privacy": "public",
7-
"sdkVersion": "25.0.0",
7+
"sdkVersion": "29.0.0",
88
"platforms": ["ios", "android"],
99
"version": "1.0.0",
1010
"orientation": "portrait",
@@ -14,6 +14,12 @@
1414
"resizeMode": "contain",
1515
"backgroundColor": "#ffffff"
1616
},
17+
"updates": {
18+
"fallbackToCacheTimeout": 0
19+
},
20+
"assetBundlePatterns": [
21+
"**/*"
22+
],
1723
"ios": {
1824
"supportsTablet": true
1925
}
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
{
2+
"name": "empty-project-template",
23
"main": "node_modules/expo/AppEntry.js",
34
"private": true,
5+
"scripts": {
6+
"start": "expo start",
7+
"android": "expo start --android",
8+
"ios": "expo start --ios",
9+
"eject": "expo eject"
10+
},
411
"dependencies": {
512
"@expo/react-native-action-sheet": "^1.0.2",
6-
"expo": "^25.0.0",
7-
"react": "16.2.0",
8-
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
13+
"expo": "^29.0.0",
14+
"react": "16.3.1",
15+
"react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz",
916
"react-native-platform-touchable": "^1.1.1",
10-
"react-navigation": "^1.0.0-beta.27",
17+
"react-navigation": "^2.9.3",
1118
"react-navigation-header-buttons": "file:../.."
1219
},
1320
"devDependencies": {
14-
"flow-bin": "0.56"
21+
"flow-bin": "^0.67.1"
1522
}
1623
}

0 commit comments

Comments
 (0)