Skip to content

Commit c6ee5ce

Browse files
committed
chore: android mmkv is removed and used async storage instead until mmkv rn71 support
1 parent 6b9072d commit c6ee5ce

File tree

10 files changed

+597
-1399
lines changed

10 files changed

+597
-1399
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ sdk.dir=/Users/username/Library/Android/sdk
182182
- [x] ~~Axios Hooks~~
183183
- [x] ~~React Native New Architecture~~
184184
- [x] ~~Zustand Integration~~
185+
- [ ] `react-native-mmkv-storage` will be re-implement when the [issue](https://github.com/ammarahm-ed/react-native-mmkv-storage/issues/316) is resolved on RN 71+
185186
- [ ] Zustand Documentation
186187
- [ ] `Babel Plugin Module Resolver` Documentation with Example
187188
- [ ] `Navigation Service` Documentation with Example

android/app/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ android {
9494

9595
compileSdkVersion rootProject.ext.compileSdkVersion
9696

97+
// ? You can remove if you don't want to use JAVA Version 18
98+
compileOptions {
99+
sourceCompatibility JavaVersion.VERSION_1_8
100+
targetCompatibility JavaVersion.VERSION_1_8
101+
}
102+
97103
namespace "com.rntypescriptboilerplate"
98104
defaultConfig {
99105
applicationId "com.rntypescriptboilerplate"

android/app/src/main/java/com/rntypescriptboilerplate/MainActivity.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
package com.rntypescriptboilerplate;
22

3+
34
import com.facebook.react.ReactActivity;
45
import com.facebook.react.ReactActivityDelegate;
56
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
67
import com.facebook.react.defaults.DefaultReactActivityDelegate;
8+
// SplashScreen imports
9+
import android.os.Bundle;
710
import org.devio.rn.splashscreen.SplashScreen;
811

912
public class MainActivity extends ReactActivity {
1013

14+
@Override
15+
protected void onCreate(Bundle savedInstanceState) {
16+
SplashScreen.show(this); // here
17+
super.onCreate(savedInstanceState);
18+
}
19+
1120
/**
1221
* Returns the name of the main component registered from JavaScript. This is used to schedule
1322
* rendering of the component.
1423
*/
1524
@Override
1625
protected String getMainComponentName() {
17-
SplashScreen.show(this);
18-
return "RNTypeScriptBoilerplate";
26+
return "RNTypescriptBoilerplate";
1927
}
2028

2129
/**
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-7.5.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)