-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ae4eaf
commit 58eb012
Showing
3 changed files
with
1,578 additions
and
1,640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config'); | ||
|
||
/** | ||
* Metro configuration | ||
* https://reactnative.dev/docs/metro | ||
* Metro configuration for React Native | ||
* https://github.com/facebook/react-native | ||
* | ||
* @type {import('metro-config').MetroConfig} | ||
* @format | ||
*/ | ||
const config = {}; | ||
|
||
module.exports = mergeConfig(getDefaultConfig(__dirname), config); | ||
module.exports = { | ||
transformer: { | ||
getTransformOptions: async () => ({ | ||
transform: { | ||
experimentalImportSupport: false, | ||
inlineRequires: true, | ||
}, | ||
}), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,9 @@ | |
"scripts": { | ||
"android": "react-native run-android", | ||
"ios": "react-native run-ios", | ||
"start": "react-native start", | ||
"lint": "eslint .", | ||
"build:android": "cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a", | ||
"build:ios": "cd ios && xcodebuild -workspace SquareInAppPaymentsExample.xcworkspace -scheme SquareInAppPaymentsExample -configuration Debug -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" | ||
"start": "react-native start", | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"fbjs": "^3.0.4", | ||
|
@@ -26,7 +25,7 @@ | |
"@babel/runtime": "^7.20.0", | ||
"@react-native/babel-preset": "0.74.83", | ||
"@react-native/eslint-config": "0.74.83", | ||
"@react-native/metro-config": "^0.74.83", | ||
"@react-native/metro-config": "0.74.83", | ||
"@react-native/typescript-config": "0.74.83", | ||
"@types/react": "^18.2.6", | ||
"@types/react-test-renderer": "^18.0.0", | ||
|
@@ -42,4 +41,4 @@ | |
"node": ">=18" | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
Oops, something went wrong.