Skip to content

Commit 4277750

Browse files
authored
feat: update to react native 0.66.0 (#226)
1 parent b3300f9 commit 4277750

File tree

9 files changed

+23
-10
lines changed

9 files changed

+23
-10
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ npx react-native init MyApp --template react-native-template-typescript
3131

3232
### Usage with older versions of React Native
3333

34-
#### e.g. `react-native@0.64.x`
34+
#### e.g. `react-native@0.65.x`
3535

3636
```sh
37-
npx react-native init MyApp --template react-native-template-typescript@6.6.*
37+
npx react-native init MyApp --template react-native-template-typescript@6.7.*
3838
```
3939

4040
See the below table to find out which version of the template to use.
@@ -43,6 +43,7 @@ See the below table to find out which version of the template to use.
4343

4444
| React Native | Template |
4545
| ------------ | -------- |
46+
| 0.66 | 6.8.\* |
4647
| 0.65 | 6.7.\* |
4748
| 0.64 | 6.6.\* |
4849
| 0.63 | 6.5.\* |

template/_gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ build/
2828
.gradle
2929
local.properties
3030
*.iml
31+
*.hprof
3132

3233
# node.js
3334
#

template/android/app/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ def jscFlavor = 'org.webkit:android-jsc:+'
120120
*/
121121
def enableHermes = project.ext.react.get("enableHermes", false);
122122

123+
/**
124+
* Architectures to build native code for in debug.
125+
*/
126+
def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures")
127+
123128
android {
124129
ndkVersion rootProject.ext.ndkVersion
125130

@@ -151,6 +156,11 @@ android {
151156
buildTypes {
152157
debug {
153158
signingConfig signingConfigs.debug
159+
if (nativeArchitectures) {
160+
ndk {
161+
abiFilters nativeArchitectures.split(',')
162+
}
163+
}
154164
}
155165
release {
156166
// Caution! In production, you need to generate your own keystore file.
@@ -186,7 +196,7 @@ dependencies {
186196
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
187197

188198
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
189-
exclude group:'com.facebook.fbjni'
199+
exclude group:'com.facebook.fbjni'
190200
}
191201

192202
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {

template/android/app/src/main/res/values/styles.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<!-- Base application theme. -->
44
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
55
<!-- Customize your theme here. -->
6-
<item name="android:textColor">#000000</item>
76
</style>
87

98
</resources>

template/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ buildscript {
66
minSdkVersion = 21
77
compileSdkVersion = 30
88
targetSdkVersion = 30
9-
ndkVersion = "20.1.5948944"
9+
ndkVersion = "21.4.7075529"
1010
}
1111
repositories {
1212
google()
1313
mavenCentral()
1414
}
1515
dependencies {
16-
classpath("com.android.tools.build:gradle:4.2.1")
16+
classpath("com.android.tools.build:gradle:4.2.2")
1717
// NOTE: Do not place your application dependencies here; they belong
1818
// in the individual module build.gradle files
1919
}

template/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ android.useAndroidX=true
2525
android.enableJetifier=true
2626

2727
# Version of flipper SDK to use with React Native
28-
FLIPPER_VERSION=0.93.0
28+
FLIPPER_VERSION=0.99.0

template/ios/HelloWorld.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@
583583
"$(inherited)",
584584
);
585585
LIBRARY_SEARCH_PATHS = (
586+
"\"$(SDKROOT)/usr/lib/swift\"",
586587
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
587588
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
588589
"\"$(inherited)\"",
@@ -641,6 +642,7 @@
641642
"$(inherited)",
642643
);
643644
LIBRARY_SEARCH_PATHS = (
645+
"\"$(SDKROOT)/usr/lib/swift\"",
644646
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
645647
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
646648
"\"$(inherited)\"",

template/ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ target 'HelloWorld' do
2525

2626
post_install do |installer|
2727
react_native_post_install(installer)
28+
__apply_Xcode_12_5_M1_post_install_workaround(installer)
2829
end
2930
end

template/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"react": "17.0.2",
14-
"react-native": "0.65.1"
14+
"react-native": "0.66.0"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.12.9",
@@ -23,8 +23,7 @@
2323
"babel-jest": "^26.6.3",
2424
"eslint": "^7.14.0",
2525
"jest": "^26.6.3",
26-
"metro-react-native-babel-preset": "^0.66.0",
27-
"react-native-codegen": "^0.0.7",
26+
"metro-react-native-babel-preset": "^0.66.2",
2827
"react-test-renderer": "17.0.2",
2928
"typescript": "^3.8.3"
3029
},

0 commit comments

Comments
 (0)