Skip to content

Commit

Permalink
fix - android - status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Dec 18, 2022
1 parent a8b84d5 commit 98326b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"react-native-web"
],
"devDependencies": {
"release-it": "^15.0.0"
"release-it": "^15.5.1"
},
"release-it": {
"git": {
Expand Down
8 changes: 6 additions & 2 deletions template/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Text, StyleSheet} from 'react-native';
import {Text, StyleSheet, StatusBar} from 'react-native';
import {
initialWindowMetrics,
SafeAreaProvider,
Expand Down Expand Up @@ -70,13 +70,17 @@ const linking = {
};

const DrawerApp = () => {
const {backgroundStyle} = useStyles();
const {backgroundStyle, isDarkMode} = useStyles();

return (
<SolitoImageProvider nextJsURL="https://luna-git-nextjs-criszz77.vercel.app/">
<SafeAreaProvider
initialMetrics={initialWindowMetrics}
style={backgroundStyle}>
<StatusBar
backgroundColor={backgroundStyle.backgroundColor}
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
/>
<NavigationContainer linking={linking}>
<TopTabNavigator />
</NavigationContainer>
Expand Down
8 changes: 2 additions & 6 deletions template/src/features/Linking/Linking.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ReactNode} from 'react';
import {ScrollView, StyleSheet, Text, View, StatusBar} from 'react-native';
import {ScrollView, StyleSheet, Text, View} from 'react-native';
import {useStyles} from '../../hooks';

// *****************************************************************************************************
Expand All @@ -24,14 +24,10 @@ const Section = ({children, title}: ISection) => {
};

export const Linking = () => {
const {backgroundStyle, isDarkMode} = useStyles();
const {backgroundStyle} = useStyles();

return (
<View style={backgroundStyle}>
<StatusBar
backgroundColor={backgroundStyle.backgroundColor}
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
/>
<ScrollView contentContainerStyle={styles.contentContainerStyle}>
<Section title="Step One">
Edit <Text style={styles.highlight}>src/features/Home/Home.tsx</Text>{' '}
Expand Down

1 comment on commit 98326b7

@vercel
Copy link

@vercel vercel bot commented on 98326b7 Dec 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

luna – ./

luna-git-nextjs-criszz77.vercel.app
luna-criszz77.vercel.app
luna-gamma.vercel.app

Please sign in to comment.