Skip to content

Commit

Permalink
Update to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Sep 18, 2024
1 parent 7112049 commit c33e238
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/

import "@ethersproject/shims";
import "@expo/metro-runtime";
import "./globals";
import "react-native-get-random-values";
import "react-native-url-polyfill/auto";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- ExpoSecureStore (13.0.2):
- ExpoModulesCore
- FBLazyVector (0.74.5)
- fmt (9.1.0)
- glog (0.3.5)
Expand Down Expand Up @@ -982,6 +984,27 @@ PODS:
- React-debug
- react-native-get-random-values (1.11.0):
- React-Core
- react-native-quick-base64 (2.1.2):
- DoubleConversion
- glog
- hermes-engine
- RCT-Folly (= 2024.01.01.00)
- RCTRequired
- RCTTypeSafety
- React-Codegen
- React-Core
- React-debug
- React-Fabric
- React-featureflags
- React-graphics
- React-ImageManager
- React-NativeModulesApple
- React-RCTFabric
- React-rendererdebug
- React-utils
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- react-native-quick-crypto (0.7.4):
- DoubleConversion
- glog
Expand All @@ -1005,7 +1028,7 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
- react-native-webview (13.12.2):
- react-native-webview (13.8.6):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1270,6 +1293,7 @@ DEPENDENCIES:
- ExpoFont (from `../node_modules/expo-font/ios`)
- ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
- ExpoModulesCore (from `../node_modules/expo-modules-core`)
- ExpoSecureStore (from `../node_modules/expo-secure-store/ios`)
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
- fmt (from `../node_modules/react-native/third-party-podspecs/fmt.podspec`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
Expand Down Expand Up @@ -1301,6 +1325,7 @@ DEPENDENCIES:
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- react-native-quick-base64 (from `../node_modules/react-native-quick-base64`)
- react-native-quick-crypto (from `../node_modules/react-native-quick-crypto`)
- react-native-webview (from `../node_modules/react-native-webview`)
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
Expand Down Expand Up @@ -1357,6 +1382,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/expo-keep-awake/ios"
ExpoModulesCore:
:path: "../node_modules/expo-modules-core"
ExpoSecureStore:
:path: "../node_modules/expo-secure-store/ios"
FBLazyVector:
:path: "../node_modules/react-native/Libraries/FBLazyVector"
fmt:
Expand Down Expand Up @@ -1416,6 +1443,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon"
react-native-get-random-values:
:path: "../node_modules/react-native-get-random-values"
react-native-quick-base64:
:path: "../node_modules/react-native-quick-base64"
react-native-quick-crypto:
:path: "../node_modules/react-native-quick-crypto"
react-native-webview:
Expand Down Expand Up @@ -1481,6 +1510,7 @@ SPEC CHECKSUMS:
ExpoFont: 00756e6c796d8f7ee8d211e29c8b619e75cbf238
ExpoKeepAwake: 3b8815d9dd1d419ee474df004021c69fdd316d08
ExpoModulesCore: f30a203ff1863bab3dd9f4421e7fc1564797f18a
ExpoSecureStore: 060cebcb956b80ddae09821610ac1aa9e1ac74cd
FBLazyVector: ac12dc084d1c8ec4cc4d7b3cf1b0ebda6dab85af
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
glog: fdfdfe5479092de0c4bdbebedd9056951f092c4f
Expand Down Expand Up @@ -1512,8 +1542,9 @@ SPEC CHECKSUMS:
React-logger: 257858bd55f3a4e1bc0cf07ddc8fb9faba6f8c7c
React-Mapbuffer: 6c1cacdbf40b531f549eba249e531a7d0bfd8e7f
react-native-get-random-values: 21325b2244dfa6b58878f51f9aa42821e7ba3d06
react-native-quick-base64: a74c4b2607b9de016877a8edb776b6ac59785809
react-native-quick-crypto: 5bface18aeadc0cf0bed298a004063a7d19b0085
react-native-webview: 8d746f921964c87b87b190bf6a46fa148d40cd0f
react-native-webview: 05bae3a03a1e4f59568dfc05286c0ebf8954106c
React-nativeconfig: ba9a2e54e2f0882cf7882698825052793ed4c851
React-NativeModulesApple: 8d11ff8955181540585c944cf48e9e7236952697
React-perflogger: ed4e0c65781521e0424f2e5e40b40cc7879d737e
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/ban-ts-comment */
// Learn more https://docs.expo.io/guides/customizing-metro

const { getDefaultConfig } = require("metro-config");

module.exports = (async () => {
Expand All @@ -14,26 +13,24 @@ module.exports = (async () => {
resolver: {
// IMP START - Bundler Issues
extraNodeModules: {
assert: require.resolve("empty-module"), // assert can be polyfilled here if needed
http: require.resolve("empty-module"), // stream-http can be polyfilled here if needed
https: require.resolve("empty-module"), // https-browserify can be polyfilled here if needed
os: require.resolve("empty-module"), // os-browserify can be polyfilled here if needed
url: require.resolve("empty-module"), // url can be polyfilled here if needed
zlib: require.resolve("empty-module"), // browserify-zlib can be polyfilled here if needed
assert: require.resolve("empty-module"),
http: require.resolve("empty-module"),
https: require.resolve("empty-module"),
os: require.resolve("empty-module"),
url: require.resolve("empty-module"),
zlib: require.resolve("empty-module"),
path: require.resolve("empty-module"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
buffer: require.resolve("buffer"),
},
// IMP END - Bundler Issues

// assetExts: assetExts.filter(ext => ext !== 'svg'),
// @ts-ignore
assetExts: assetExts.filter((ext) => ext !== "svg"),
// Ensure PNG and other image files are resolved correctly
assetExts: assetExts.filter((ext: string) => ext !== "svg").concat(["png"]),

// Extending source extensions for your use case
sourceExts: process.env.TEST_REACT_NATIVE ? ["e2e.js"].concat(defaultSourceExts) : defaultSourceExts,
// ? ['e2e.js'].concat(defaultSourceExts)
// : defaultSourceExts,
},
transformer: {
getTransformOptions: async () => ({
Expand All @@ -42,8 +39,7 @@ module.exports = (async () => {
inlineRequires: true,
},
}),
// This detects entry points of React app and transforms them
// For the other files this will switch to use default `metro-react-native-babel-transformer` for transforming
// Custom Babel Transformer Path for React Bridge
babelTransformerPath: require.resolve("react-native-react-bridge/lib/plugin"),
},
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@
"expo-status-bar": "~1.12.1",
"metro-config": "^0.80.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.5",
"react-native-auth0": "^3.2.1",
"react-native-quick-base64": "^2.1.2",
"react-native-quick-crypto": "^0.7.4",
"react-native-react-bridge": "^0.11.2",
"react-native-webview": "13.8.6"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@ethersproject/shims": "^5.7.0",
"@expo/metro-runtime": "~3.2.3",
"@types/react": "^18.3.7",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
Expand Down

0 comments on commit c33e238

Please sign in to comment.