|
5 | 5 | "scripts": { |
6 | 6 | "android": "react-native run-android", |
7 | 7 | "ios": "react-native run-ios", |
| 8 | + "web": "webpack serve --mode development", |
8 | 9 | "start": "react-native start", |
9 | 10 | "build:android": "react-native build-android --extra-params \"--no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a\"", |
10 | | - "build:ios": "react-native build-ios --scheme DotlottieReactNativeExample --mode Debug --extra-params \"-sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO\"" |
| 11 | + "build:ios": "react-native build-ios --scheme DotlottieReactNativeExample --mode Debug --extra-params \"-sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO\"", |
| 12 | + "build:web": "webpack --mode production" |
11 | 13 | }, |
12 | 14 | "dependencies": { |
13 | 15 | "react": "18.2.0", |
14 | | - "react-native": "0.74.5" |
| 16 | + "react-dom": "18.2.0", |
| 17 | + "react-native": "0.74.5", |
| 18 | + "react-native-web": "^0.21.1" |
15 | 19 | }, |
16 | 20 | "devDependencies": { |
17 | 21 | "@babel/core": "^7.20.0", |
18 | 22 | "@babel/preset-env": "^7.20.0", |
| 23 | + "@babel/preset-react": "^7.27.1", |
19 | 24 | "@babel/runtime": "^7.20.0", |
20 | 25 | "@react-native/babel-preset": "0.74.87", |
21 | 26 | "@react-native/metro-config": "0.74.87", |
22 | 27 | "@react-native/typescript-config": "0.74.87", |
23 | | - "react-native-builder-bob": "^0.29.0" |
| 28 | + "babel-loader": "^10.0.0", |
| 29 | + "html-webpack-plugin": "^5.6.4", |
| 30 | + "react-native-builder-bob": "^0.29.0", |
| 31 | + "webpack": "^5.102.1", |
| 32 | + "webpack-cli": "^6.0.1", |
| 33 | + "webpack-dev-server": "^5.2.2" |
24 | 34 | }, |
25 | 35 | "engines": { |
26 | 36 | "node": ">=18" |
|
0 commit comments