Skip to content

Commit c8be83c

Browse files
committed
rewrite expo plugin
1 parent 2e9394c commit c8be83c

File tree

7 files changed

+1262
-147
lines changed

7 files changed

+1262
-147
lines changed

apps/example/app.json

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
}
1111
],
1212
"plugins": [
13-
["react-native-edge-to-edge", {"android": {"parentTheme": "Material3"}}]
13+
[
14+
"react-native-edge-to-edge",
15+
{ "android": { "parentTheme": "Material3" } },
16+
"react-native-bottom-tabs"
17+
]
1418
],
1519
"resources": {
1620
"android": [
@@ -23,18 +27,9 @@
2327
"dist/main.ios.jsbundle",
2428
"../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"
2529
],
26-
"macos": [
27-
"dist/assets",
28-
"dist/main.macos.jsbundle"
29-
],
30-
"visionos": [
31-
"dist/assets",
32-
"dist/main.visionos.jsbundle"
33-
],
34-
"windows": [
35-
"dist/assets",
36-
"dist/main.windows.bundle"
37-
]
30+
"macos": ["dist/assets", "dist/main.macos.jsbundle"],
31+
"visionos": ["dist/assets", "dist/main.visionos.jsbundle"],
32+
"windows": ["dist/assets", "dist/main.windows.bundle"]
3833
},
3934
"android": {
4035
"package": "bottomtabs.example"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
module.exports = require('./lib/module/expo');
1+
module.exports = require('./plugin/build');
2+

packages/react-native-bottom-tabs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"test": "jest",
4141
"typecheck": "tsc -b",
4242
"lint": "eslint \"**/*.{js,ts,tsx}\"",
43-
"build": "bob build"
43+
"build": "bob build && expo-module build plugin"
4444
},
4545
"keywords": [
4646
"react-native",
@@ -67,6 +67,7 @@
6767
"@react-native/eslint-config": "0.81.1",
6868
"@types/jest": "^29.5.5",
6969
"@types/react": "^18.2.44",
70+
"expo-module-scripts": "^5.0.7",
7071
"react": "^19.1.0",
7172
"react-native": "0.81.1",
7273
"react-native-builder-bob": "^0.40.13",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "expo-module-scripts/tsconfig.plugin",
3+
"compilerOptions": {
4+
"outDir": "build",
5+
"rootDir": "src"
6+
},
7+
"include": ["./src"],
8+
"exclude": ["**/__mocks__/*", "**/__tests__/*"]
9+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"root":["./src/index.ts"],"version":"5.9.2"}

0 commit comments

Comments
 (0)