Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: [Fix] Bottom Navigation Safe Area #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/navigations/3-MainApp/MainAppStack.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Platform, Text, View } from 'react-native'
import { Text } from 'react-native'
import AntIcon from 'react-native-vector-icons/AntDesign'
import Icon from 'react-native-vector-icons/FontAwesome'
import {
Expand All @@ -12,7 +12,7 @@ import { MainAppFaceCamera } from './MainAppFaceCamera'
import { QRCodeScan } from './QRCodeScan'
import { Settings } from './Settings'

import I18n from '../../../i18n/i18n';
import I18n from '../../../i18n/i18n'

const TabBarLabel = ({ title, focused }: any) => {
return (
Expand All @@ -35,7 +35,7 @@ export const MainAppTab = createBottomTabNavigator(
screen: MainApp,
navigationOptions: {
tabBarLabel: ({ focused }: any) => (
<TabBarLabel title={I18n.t('data')} focused={focused} />
<TabBarLabel title={I18n.t('data')} focused={focused} />
),
tabBarIcon: ({ focused }: any) => (
<Icon
Expand All @@ -50,7 +50,7 @@ export const MainAppTab = createBottomTabNavigator(
screen: QRCodeScan,
navigationOptions: {
tabBarLabel: ({ focused }: any) => (
<TabBarLabel title={I18n.t('scan_qr')} focused={focused} />
<TabBarLabel title={I18n.t('scan_qr')} focused={focused} />
),
tabBarIcon: ({ focused }: any) => (
<AntIcon
Expand Down Expand Up @@ -95,11 +95,12 @@ export const MainAppTab = createBottomTabNavigator(
{
tabBarOptions: {
style: {
backgroundColor: '#F9F9F9',
marginBottom: 18,
backgroundColor: '#F9F9F9',
borderTopColor: 'transparent',
},
}
}
},
},
)

export const MainAppStack = createStackNavigator(
Expand Down