Skip to content

Commit

Permalink
Merge pull request #156 from YajanaRao/stable-android
Browse files Browse the repository at this point in the history
Stable android
  • Loading branch information
YajanaRao authored Aug 19, 2024
2 parents 6dd1276 + 14daccf commit a1dad31
Show file tree
Hide file tree
Showing 5 changed files with 1,689 additions and 2,430 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MainActivity : ReactActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen
super.onCreate(savedInstanceState) // super.onCreate(null) with react-native-screens
super.onCreate(null)
}

/**
Expand Down
2 changes: 0 additions & 2 deletions apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@serenity/components": "*",
"@serenity/core": "*",
"@yajanarao/react-native-get-music-files": "*",
"add": "^2.0.6",
"dayjs": "^1.11.5",
"lodash": "4.17.21",
"lottie-ios": "3.4.0",
Expand All @@ -46,7 +45,6 @@
"react-native-clarity": "^3.0.0",
"react-native-config": "^1.4.2",
"react-native-fast-image": "^8.3.4",
"react-native-fs": "^2.17.0",
"react-native-gesture-handler": "2.14.0",
"react-native-get-random-values": "^1.7.0",
"react-native-linear-gradient": "2.8.3",
Expand Down
8 changes: 4 additions & 4 deletions apps/mobile/src/navigation/RootNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, {useEffect} from 'react';
import {useTheme} from 'react-native-paper';
import {createStackNavigator} from '@react-navigation/stack';
import RNBootSplash from 'react-native-bootsplash';
import {createNativeStackNavigator} from 'react-native-screens/native-stack';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {NavigatorScreenParams} from '@react-navigation/native';
import {SafeAreaView} from 'react-native';
import {View} from 'react-native';

import IntroductionScreen from '../screens/intro/Introduction';

Expand Down Expand Up @@ -74,9 +74,9 @@ export const RootNavigator = () => {
}, []);

return (
<SafeAreaView style={{flex: 1, backgroundColor: colors.surface}}>
<View style={{flex: 1, backgroundColor: colors.surface}}>
<NotificationDialog />
<AppStack />
</SafeAreaView>
</View>
);
};
46 changes: 22 additions & 24 deletions apps/mobile/src/screens/player/index.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
import React from 'react';
import { useTheme } from 'react-native-paper';
import { createNativeStackNavigator } from 'react-native-screens/native-stack';
import { PlayerScreen } from './player/PlayerScreen';
import { QueueScreen } from './Queue';
import {useTheme} from 'react-native-paper';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {PlayerScreen} from './player/PlayerScreen';
import {QueueScreen} from './Queue';

const NativeStack = createNativeStackNavigator();

export const PlayerStack = () => {
const { colors } = useTheme();
return (
<NativeStack.Navigator
initialRouteName="Active"
screenOptions={{
headerStyle: {
backgroundColor: colors.surface,
},
headerTintColor: colors.text,
headerTopInsetEnabled: false,
}}
>
<NativeStack.Screen
name="Active"
component={PlayerScreen}
options={{ headerShown: false }}
/>
<NativeStack.Screen name="Queue" component={QueueScreen} />
</NativeStack.Navigator>
);
const {colors} = useTheme();
return (
<NativeStack.Navigator
initialRouteName="Active"
screenOptions={{
headerStyle: {
backgroundColor: colors.surface,
},
headerTintColor: colors.text,
}}>
<NativeStack.Screen
name="Active"
component={PlayerScreen}
options={{headerShown: false}}
/>
<NativeStack.Screen name="Queue" component={QueueScreen} />
</NativeStack.Navigator>
);
};
Loading

0 comments on commit a1dad31

Please sign in to comment.