Skip to content

Commit 21a72c6

Browse files
cknittMoOx
authored andcommitted
Cem's Twitter example adapted to latest master. (#573)
* Cem's Twitter example adapted to latest master. * refactored everything but Content modules from TwitterNavigation.re to own modules (#574) Closes #556
1 parent 0350ade commit 21a72c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+8723
-1924
lines changed

bs-react-native-example/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Playground of a React Native app done in Reason",
55
"slug": "bs-react-native",
66
"privacy": "public",
7-
"sdkVersion": "30.0.0",
7+
"sdkVersion": "33.0.0",
88
"platforms": ["ios", "android"],
99
"version": "1.0.0",
1010
"orientation": "portrait",

bs-react-native-example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
},
1717
"dependencies": {
1818
"bs-platform": "^5.0.4",
19-
"expo": "^30.0.1",
20-
"react": "16.3.1",
21-
"react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz",
19+
"expo": "^33.0.7",
20+
"react": "16.8.6",
21+
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
2222
"reason-react": "^0.7.0"
2323
}
2424
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"bs-react-native",
4646
"bs-react-native-example",
4747
"reason-react-navigation",
48+
"reason-react-navigation-example",
4849
"website"
4950
]
5051
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/**/*
2+
.expo/*
3+
npm-debug.*
4+
lib/bs
5+
.bsb.lock
6+
.merlin
7+
*.bs.js
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const App = require("./src/App.bs").default;
2+
3+
module.exports = App;

reason-react-navigation-example/__generated__/AppEntry.js

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"expo": {
3+
"name": "reason-react-navigation-example",
4+
"description": "Playground of a React Native app with navigation done in Reason",
5+
"slug": "reason-react-navigation-example",
6+
"privacy": "public",
7+
"sdkVersion": "33.0.0",
8+
"platforms": ["ios", "android"],
9+
"version": "1.0.0",
10+
"orientation": "portrait",
11+
"icon": "./assets/icon.png",
12+
"splash": {
13+
"image": "./assets/splash.png",
14+
"resizeMode": "contain",
15+
"backgroundColor": "#ffffff"
16+
},
17+
"updates": {
18+
"fallbackToCacheTimeout": 0
19+
},
20+
"assetBundlePatterns": ["**/*"],
21+
"ios": {
22+
"supportsTablet": true
23+
},
24+
"packagerOpts": {
25+
"config": "rn-cli.config.js"
26+
},
27+
"githubUrl": "https://github.com/reasonml-community/reason-react-native"
28+
}
29+
}
2.91 KB
Loading
7.01 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(api) {
2+
api.cache(true);
3+
return {
4+
presets: ["babel-preset-expo"],
5+
};
6+
};

0 commit comments

Comments
 (0)