Skip to content

Commit

Permalink
v0.0.5-unproper status-nav color
Browse files Browse the repository at this point in the history
  • Loading branch information
tjikaljedy committed May 30, 2022
1 parent 2c42829 commit cdcf683
Show file tree
Hide file tree
Showing 26 changed files with 473 additions and 975 deletions.
31 changes: 8 additions & 23 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
import 'react-native-gesture-handler';
import React from 'react';
import {AppState} from 'react-native';
import {LogBox, useColorScheme} from 'react-native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {LogBox} from 'react-native';
import RootNavigation from '@src/routes/RootNavigation';
//Redux
import {Provider as StoreProvider} from 'react-redux';
Expand All @@ -25,17 +15,14 @@ import {AppReviewConfig} from '@src/constants';
import PermitProvider from '@src/components/common/PermissionProvider/PermitProvider';

const {USES_UNTIL_SHOW} = AppReviewConfig;
//const persistor = persistStore(store);
LogBox.ignoreLogs(['new NativeEventEmitter']);
LogBox.ignoreAllLogs();

const App = () => {
//Default
const appState = React.useRef(AppState.currentState);
const [appStateVisible, setAppStateVisible] = React.useState(
appState.current,
);

React.useEffect(() => {
const subscription = AppState.addEventListener('change', (nextAppState) => {
console.log('>> 0' + appStateVisible);
Expand Down Expand Up @@ -67,15 +54,13 @@ const App = () => {
return (
<StoreProvider store={store}>
<PersistGate loading={null} persistor={persistor}>
<SafeAreaProvider>
<AuthProvider>
<PermitProvider>
<CartProvider>
<RootNavigation />
</CartProvider>
</PermitProvider>
</AuthProvider>
</SafeAreaProvider>
<AuthProvider>
<PermitProvider>
<CartProvider>
<RootNavigation />
</CartProvider>
</PermitProvider>
</AuthProvider>
</PersistGate>
</StoreProvider>
);
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/java/com/crazyrich/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableB
setTheme(R.style.AppTheme);
I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
sharedI18nUtilInstance.allowRTL(getApplicationContext(), true);

super.onCreate(savedInstanceState, persistentState);
}

Expand Down
2 changes: 0 additions & 2 deletions android/app/src/main/res/drawable/splash.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android"
tools:ignore="MissingDefaultResource">
<item android:drawable="@color/colorSecondary" />
<item android:width="300dp"
android:height="300dp" android:drawable="@drawable/logo"
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<resources>
<color name="colorPrimary">#5956E9</color>
<color name="colorSecondary">#6350FF</color>
</resources>
</resources>
4 changes: 2 additions & 2 deletions android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<style name="SplashTheme" parent="AppTheme">
<item name="android:windowBackground">@drawable/splash</item>
<item name="android:statusBarColor">@color/colorSecondary</item>
<item name="android:navigationBarColor">@color/colorSecondary</item>
</style>
</resources>

</resources>
7 changes: 3 additions & 4 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:textColor">#000000</item>
<item name="android:windowBackground">@color/colorSecondary</item>
<!--<item name="android:statusBarColor">@color/colorSecondary</item>
<item name="android:navigationBarColor">@color/colorSecondary</item>
<item name="android:windowBackground">@color/colorSecondary</item>-->
-->
</style>

</resources>
</resources>
45 changes: 0 additions & 45 deletions ios/LaunchScreen.storyboard

This file was deleted.

Loading

0 comments on commit cdcf683

Please sign in to comment.