File tree 9 files changed +23
-10
lines changed
9 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ npx react-native init MyApp --template react-native-template-typescript
31
31
32
32
### Usage with older versions of React Native
33
33
34
- #### e.g. ` react-native@0.64 .x `
34
+ #### e.g. ` react-native@0.65 .x `
35
35
36
36
``` 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 .*
38
38
```
39
39
40
40
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.
43
43
44
44
| React Native | Template |
45
45
| ------------ | -------- |
46
+ | 0.66 | 6.8.\* |
46
47
| 0.65 | 6.7.\* |
47
48
| 0.64 | 6.6.\* |
48
49
| 0.63 | 6.5.\* |
Original file line number Diff line number Diff line change 28
28
.gradle
29
29
local.properties
30
30
*.iml
31
+ *.hprof
31
32
32
33
# node.js
33
34
#
Original file line number Diff line number Diff line change @@ -120,6 +120,11 @@ def jscFlavor = 'org.webkit:android-jsc:+'
120
120
*/
121
121
def enableHermes = project. ext. react. get(" enableHermes" , false );
122
122
123
+ /**
124
+ * Architectures to build native code for in debug.
125
+ */
126
+ def nativeArchitectures = project. getProperties(). get(" reactNativeDebugArchitectures" )
127
+
123
128
android {
124
129
ndkVersion rootProject. ext. ndkVersion
125
130
@@ -151,6 +156,11 @@ android {
151
156
buildTypes {
152
157
debug {
153
158
signingConfig signingConfigs. debug
159
+ if (nativeArchitectures) {
160
+ ndk {
161
+ abiFilters nativeArchitectures. split(' ,' )
162
+ }
163
+ }
154
164
}
155
165
release {
156
166
// Caution! In production, you need to generate your own keystore file.
@@ -186,7 +196,7 @@ dependencies {
186
196
implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
187
197
188
198
debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
189
- exclude group :' com.facebook.fbjni'
199
+ exclude group :' com.facebook.fbjni'
190
200
}
191
201
192
202
debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
Original file line number Diff line number Diff line change 3
3
<!-- Base application theme. -->
4
4
<style name =" AppTheme" parent =" Theme.AppCompat.DayNight.NoActionBar" >
5
5
<!-- Customize your theme here. -->
6
- <item name =" android:textColor" >#000000</item >
7
6
</style >
8
7
9
8
</resources >
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ buildscript {
6
6
minSdkVersion = 21
7
7
compileSdkVersion = 30
8
8
targetSdkVersion = 30
9
- ndkVersion = " 20.1.5948944 "
9
+ ndkVersion = " 21.4.7075529 "
10
10
}
11
11
repositories {
12
12
google()
13
13
mavenCentral()
14
14
}
15
15
dependencies {
16
- classpath(" com.android.tools.build:gradle:4.2.1 " )
16
+ classpath(" com.android.tools.build:gradle:4.2.2 " )
17
17
// NOTE: Do not place your application dependencies here; they belong
18
18
// in the individual module build.gradle files
19
19
}
Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ android.useAndroidX=true
25
25
android.enableJetifier =true
26
26
27
27
# Version of flipper SDK to use with React Native
28
- FLIPPER_VERSION =0.93 .0
28
+ FLIPPER_VERSION =0.99 .0
Original file line number Diff line number Diff line change 583
583
"$(inherited)",
584
584
);
585
585
LIBRARY_SEARCH_PATHS = (
586
+ "\"$(SDKROOT)/usr/lib/swift\"",
586
587
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
587
588
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
588
589
"\"$(inherited)\"",
641
642
"$(inherited)",
642
643
);
643
644
LIBRARY_SEARCH_PATHS = (
645
+ "\"$(SDKROOT)/usr/lib/swift\"",
644
646
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
645
647
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
646
648
"\"$(inherited)\"",
Original file line number Diff line number Diff line change @@ -25,5 +25,6 @@ target 'HelloWorld' do
25
25
26
26
post_install do |installer |
27
27
react_native_post_install ( installer )
28
+ __apply_Xcode_12_5_M1_post_install_workaround ( installer )
28
29
end
29
30
end
Original file line number Diff line number Diff line change 11
11
},
12
12
"dependencies" : {
13
13
"react" : " 17.0.2" ,
14
- "react-native" : " 0.65.1 "
14
+ "react-native" : " 0.66.0 "
15
15
},
16
16
"devDependencies" : {
17
17
"@babel/core" : " ^7.12.9" ,
23
23
"babel-jest" : " ^26.6.3" ,
24
24
"eslint" : " ^7.14.0" ,
25
25
"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" ,
28
27
"react-test-renderer" : " 17.0.2" ,
29
28
"typescript" : " ^3.8.3"
30
29
},
You can’t perform that action at this time.
0 commit comments