Skip to content

Commit

Permalink
navbar improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Dec 18, 2022
1 parent 68ac979 commit ef9c235
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 4 additions & 5 deletions template/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const Layout = ({children}: ILayout) => {
return (
<View style={backgroundStyle}>
<View style={styles.container}>
<Logo width={75} height={75} style={styles.logo} />
<Logo width={175} height={175} style={styles.logo} />
<View style={styles.navContainer}>
<NavButton href="/" title="Home" />
<NavButton href="/linking" title="Linking" />
Expand All @@ -59,8 +59,7 @@ const styles = StyleSheet.create({
container: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-around',
paddingRight: '65%',
justifyContent: 'space-between',
flex: 1,
},
childrenContainer: {
Expand All @@ -69,11 +68,11 @@ const styles = StyleSheet.create({
navContainer: {
flexDirection: 'row',
flex: 1,
justifyContent: 'space-around',
justifyContent: 'flex-end',
},
logo: {
flex: 2,
paddingTop: 20,
marginLeft: 20,
},
emptyView: {
flex: 4,
Expand Down
7 changes: 7 additions & 0 deletions template/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
} from 'react-native-safe-area-context';
import {useStyles} from '../hooks';
import '../styles.css';
import Head from 'next/head';

export default function MyApp({Component, pageProps}: AppProps) {
const {backgroundStyle} = useStyles();
Expand All @@ -13,6 +14,12 @@ export default function MyApp({Component, pageProps}: AppProps) {
<SafeAreaProvider
initialMetrics={initialWindowMetrics}
style={backgroundStyle}>
<Head>
<title>Create 🌒 Luna App</title>
<meta name="description" content="Generated by 🌒 Luna" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{/*<link rel="icon" href="/favicon.ico" />*/}
</Head>
<Component {...pageProps} />
</SafeAreaProvider>
);
Expand Down

1 comment on commit ef9c235

@vercel
Copy link

@vercel vercel bot commented on ef9c235 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-gamma.vercel.app
luna-criszz77.vercel.app
luna-git-nextjs-criszz77.vercel.app

Please sign in to comment.