Skip to content

Commit 5606d0c

Browse files
committed
merge v2.2.5
1 parent d41ae47 commit 5606d0c

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thecodingmachine/react-native-boilerplate",
3-
"version": "2.2.5",
3+
"version": "3.0.0-alpha.0",
44
"description": "TheCodingMachine React Native Boilerplate",
55
"repository": {
66
"type": "git",

template/ts-support-template/src/Navigators/Application.tsx

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { NavigationContainer } from '@react-navigation/native'
66
import { navigationRef } from '@/Navigators/Root'
77
import { SafeAreaView, StatusBar } from 'react-native'
88
import { useTheme } from '@/Theme'
9-
import { AppearanceProvider } from 'react-native-appearance'
109
import { StartupState } from '@/Store/Startup'
1110

1211
const Stack = createStackNavigator()
@@ -39,25 +38,23 @@ const ApplicationNavigator = () => {
3938
)
4039

4140
return (
42-
<AppearanceProvider>
43-
<SafeAreaView style={[Layout.fill, { backgroundColor: colors.card }]}>
44-
<NavigationContainer theme={NavigationTheme} ref={navigationRef}>
45-
<StatusBar barStyle={darkMode ? 'light-content' : 'dark-content'} />
46-
<Stack.Navigator headerMode={'none'}>
47-
<Stack.Screen name="Startup" component={IndexStartupContainer} />
48-
{isApplicationLoaded && MainNavigator != null && (
49-
<Stack.Screen
50-
name="Main"
51-
component={MainNavigator}
52-
options={{
53-
animationEnabled: false,
54-
}}
55-
/>
56-
)}
57-
</Stack.Navigator>
58-
</NavigationContainer>
59-
</SafeAreaView>
60-
</AppearanceProvider>
41+
<SafeAreaView style={[Layout.fill, { backgroundColor: colors.card }]}>
42+
<NavigationContainer theme={NavigationTheme} ref={navigationRef}>
43+
<StatusBar barStyle={darkMode ? 'light-content' : 'dark-content'} />
44+
<Stack.Navigator headerMode={'none'}>
45+
<Stack.Screen name="Startup" component={IndexStartupContainer} />
46+
{isApplicationLoaded && MainNavigator != null && (
47+
<Stack.Screen
48+
name="Main"
49+
component={MainNavigator}
50+
options={{
51+
animationEnabled: false,
52+
}}
53+
/>
54+
)}
55+
</Stack.Navigator>
56+
</NavigationContainer>
57+
</SafeAreaView>
6158
)
6259
}
6360

template/ts-support-template/src/Theme/hooks/useTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useColorScheme } from 'react-native-appearance'
1+
import { useColorScheme } from 'react-native'
22
import { useSelector } from 'react-redux'
33
import { DarkTheme, DefaultTheme } from '@react-navigation/native'
44
import Fonts from '@/Theme/Fonts'

0 commit comments

Comments
 (0)