mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
8d652fba4c
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/32790 As the name says, I've added a `newArchEnabled` property that can be used to toggle the New Architecture in the new app template. Users can use this to try the New Architecture in their project by either: * Set `newArchEnabled` to true inside the `gradle.properties` file * Invoke gradle with `-PnewArchEnabled=true` * Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` The Project property will also control if: * ReactNative dependency should be built from source or not. * The NDK should be enabled or not. Please note that this requires RN 0.68.x to run properly (it won't work with 0.67 RCs) or a Nightly version of React Native. Changelog: [Android] [Added] - Setup a `newArchEnabled` property to Opt-in the New Architecture in the template Reviewed By: ShikaSD Differential Revision: D33065373 fbshipit-source-id: 32085f5b071d6243936bafd91425b5b43e5b5101
34 lines
768 B
JSON
34 lines
768 B
JSON
{
|
|
"name": "HelloWorld",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"android": "react-native run-android",
|
|
"ios": "react-native run-ios",
|
|
"start": "react-native start",
|
|
"test": "jest",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"react": "17.0.2",
|
|
"react-native": "1000.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.12.9",
|
|
"@babel/runtime": "^7.12.5",
|
|
"@react-native-community/eslint-config": "^2.0.0",
|
|
"babel-jest": "^26.6.3",
|
|
"eslint": "^7.32.0",
|
|
"jest": "^26.6.3",
|
|
"metro-react-native-babel-preset": "^0.66.2",
|
|
"react-native-gradle-plugin": "^0.0.3",
|
|
"react-test-renderer": "17.0.2"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native"
|
|
},
|
|
"codegenConfig": {
|
|
"libraries": []
|
|
}
|
|
}
|