mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 13:43:25 +00:00
[fix] fix comments on PR
This commit is contained in:
@@ -1,31 +1,9 @@
|
||||
import FontAwesome from '@expo/vector-icons/FontAwesome';
|
||||
import { Tabs } from 'expo-router';
|
||||
import { StyleProp, TextStyle } from 'react-native';
|
||||
|
||||
import Colors from '../../constants/Colors';
|
||||
import TabBarIcon from '../../components/TabBarIcon';
|
||||
import { globalStyles } from '../../styles/global';
|
||||
|
||||
/**
|
||||
* You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/
|
||||
*/
|
||||
function TabBarIcon(props: {
|
||||
name: React.ComponentProps<typeof FontAwesome>['name'];
|
||||
color?: string;
|
||||
focused?: boolean;
|
||||
style?: StyleProp<TextStyle>;
|
||||
}) {
|
||||
return (
|
||||
<FontAwesome
|
||||
color={
|
||||
props.color ||
|
||||
(props.focused ? Colors.dark.purple300 : Colors.dark.shade300)
|
||||
}
|
||||
size={24}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default function TabLayout() {
|
||||
return (
|
||||
<Tabs
|
||||
@@ -68,7 +46,7 @@ export default function TabLayout() {
|
||||
options={{
|
||||
title: 'About',
|
||||
tabBarIcon: ({ focused }) => (
|
||||
<TabBarIcon name="500px" focused={focused} />
|
||||
<TabBarIcon name="info-circle" focused={focused} />
|
||||
),
|
||||
}}
|
||||
/>
|
||||
|
@@ -4,7 +4,7 @@ import ScreenLayout from '../../components/layout/screenLayout';
|
||||
import { globalStyles } from '../../styles/global';
|
||||
import { RegularText } from '../../components/Styled';
|
||||
|
||||
export default function TabTwoScreen() {
|
||||
export default function AboutScreen() {
|
||||
return (
|
||||
<ScreenLayout
|
||||
title="About"
|
||||
|
Reference in New Issue
Block a user