Skip to content

Commit c6a9e9e

Browse files
Handi PriyonoHandi Priyono
authored andcommitted
upgrade react native to use 0.65 and its dependencies
1 parent 26b8021 commit c6a9e9e

File tree

29 files changed

+2598
-1989
lines changed

29 files changed

+2598
-1989
lines changed
File renamed without changes.

.flowconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ node_modules/react-native/flow/
2323
[options]
2424
emoji=true
2525

26-
esproposal.optional_chaining=enable
27-
esproposal.nullish_coalescing=enable
28-
2926
exact_by_default=true
3027

3128
module.file_ext=.js
@@ -63,4 +60,4 @@ untyped-import
6360
untyped-type-import
6461

6562
[version]
66-
^0.137.0
63+
^0.149.0

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@ It is a template that you can clone and reuse for every project. It is starting
88

99
consist of:
1010

11-
- react-native": "0.64.0"
12-
- react-navigation and its dependencies
11+
- react-native": "0.65.1"
12+
- react-navigation and its dependencies: -> React navigation 6.
13+
- @react-navigation/native: "^6.0.2
14+
- @react-navigation/native-stack: "^6.1.0"
15+
- @react-navigation/stack: "^6.0.7"
16+
- react-native-gesture-handler: "^1.10.3"
17+
- react-native-screens: "^3.6.0"
18+
- react-native-tab-view: "^3.1.1"
19+
- react-native-masked-view/masked-view: "^0.2.6"
20+
- @react-navigation/bottom-tabs: "^6.0.5"
21+
- @react-navigation/material-top-tabs: "^6.0.2"
1322
- redux, redux persist and redux thunk
14-
- react native vector icons
15-
- react-native async storage
23+
- react native vector icons: "^8.1.0"
24+
- react-native async storage: @react-native-async-storage/async-storage: "^1.15.7"
1625

1726
## Getting Started
1827

@@ -64,8 +73,12 @@ Run this command `chmod 755 android/gradlew` from your root project directory
6473
- Paste your Android SDK path depending on the operating system:
6574

6675
- Windows:
67-
sdk.dir=C:/Users/`USERNAME`/AppData/Local/Android/sdk
76+
sdk.dir=C:\\Users\\`USERNAME`\\AppData\\Local\\Android\\sdk
6877
- Linux or MacOS
69-
sdk.dir=/home/`USERNAME`/Android/sdk
78+
sdk.dir=/Users/`USERNAME`/Library/Android/sdk
7079

7180
- Replace `USERNAME` with your PC username
81+
82+
### React Native Build Failed on M1 Macbook Pro / Air
83+
84+
try this solution: [How to Run and Build React Native on Macbook Pro M1 Apple Silicon](https://handi.dev/blog/how-run-react-native-on-macbook-m1-apple-silicon)

android/app/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ android {
125125

126126
compileSdkVersion rootProject.ext.compileSdkVersion
127127

128-
compileOptions {
129-
sourceCompatibility JavaVersion.VERSION_1_8
130-
targetCompatibility JavaVersion.VERSION_1_8
131-
}
132-
133128
defaultConfig {
134129
applicationId "com.reactnativeboilerplate"
135130
minSdkVersion rootProject.ext.minSdkVersion
@@ -215,8 +210,9 @@ dependencies {
215210
// Run this once to be able to run the application with BUCK
216211
// puts all compile dependencies into folder libs for BUCK to use
217212
task copyDownloadableDepsToLibs(type: Copy) {
218-
from configurations.compile
213+
from configurations.implementation
219214
into 'libs'
220215
}
221216

217+
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
222218
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.reactnativeboilerplate;
22
import android.os.Bundle;
3+
34
import com.facebook.react.ReactActivity;
45

56
public class MainActivity extends ReactActivity {
@@ -9,13 +10,13 @@ public class MainActivity extends ReactActivity {
910
* rendering of the component.
1011
*/
1112

12-
@Override
13-
protected void onCreate(Bundle savedInstanceState) {
14-
super.onCreate(null);
15-
}
16-
13+
@Override
14+
protected void onCreate(Bundle savedInstanceState) {
15+
super.onCreate(null);
16+
}
17+
1718
@Override
1819
protected String getMainComponentName() {
19-
return "reactnativeboilerplate";
20+
return "reactNativeBoilerplate";
2021
}
2122
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<string name="app_name">reactnativeboilerplate</string>
2+
<string name="app_name">reactNativeBoilerplate</string>
33
</resources>

android/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = "29.0.3"
5+
buildToolsVersion = "30.0.2"
66
minSdkVersion = 21
7-
compileSdkVersion = 29
8-
targetSdkVersion = 29
7+
compileSdkVersion = 30
8+
targetSdkVersion = 30
99
ndkVersion = "20.1.5948944"
1010
}
1111
repositories {
1212
google()
13-
jcenter()
13+
mavenCentral()
1414
}
1515
dependencies {
16-
classpath("com.android.tools.build:gradle:4.1.0")
16+
classpath("com.android.tools.build:gradle:4.2.1")
1717
// NOTE: Do not place your application dependencies here; they belong
1818
// in the individual module build.gradle files
1919
}
2020
}
2121

2222
allprojects {
2323
repositories {
24+
mavenCentral()
2425
mavenLocal()
2526
maven {
2627
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
@@ -32,7 +33,6 @@ allprojects {
3233
}
3334

3435
google()
35-
jcenter()
3636
maven { url 'https://www.jitpack.io' }
3737
}
3838
}

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.75.1
28+
FLIPPER_VERSION=0.93.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)