Skip to content

Commit 6f6cc13

Browse files
committed
fix(example-app): 🚑 update react-native-web &
add babel plugin that fixes issue of running app on web
1 parent 0c78869 commit 6f6cc13

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

example/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ module.exports = function (api) {
1717
},
1818
},
1919
],
20+
"@babel/plugin-proposal-export-namespace-from",
2021
"react-native-reanimated/plugin",
2122
],
2223
};

example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
"react-native-reanimated": "2.12.0",
2323
"react-native-safe-area-context": "4.4.1",
2424
"react-native-screens": "~3.18.0",
25-
"react-native-web": "~0.18.7",
25+
"react-native-web": "~0.18.10",
2626
"twrnc": "3.4.1"
2727
},
2828
"devDependencies": {
2929
"@babel/core": "^7.19.3",
3030
"@babel/runtime": "7.18.9",
31+
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
3132
"@types/react": "~18.0.24",
3233
"@types/react-native": "~0.70.6",
3334
"babel-loader": "8.2.5",

example/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9739,7 +9739,7 @@ react-native-screens@~3.18.0:
97399739
react-freeze "^1.0.0"
97409740
warn-once "^0.1.0"
97419741

9742-
react-native-web@~0.18.7:
9742+
react-native-web@~0.18.10:
97439743
version "0.18.10"
97449744
resolved "https://registry.yarnpkg.com/react-native-web/-/react-native-web-0.18.10.tgz#fb4db047f4be7f9cf35f37ec8d52f7d1c450600f"
97459745
integrity sha512-YV2gtZa1n7ulTGp+HcxH+KsAtaDPBI/dKd9oOQS31zyFHURjObLUVkKnGjkmlYAUReWfvmlU64GzyNwoZF9/tA==

0 commit comments

Comments
 (0)