From c2ed9af093a69f347b46122ac6d752d84beb59fb Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Thu, 22 Dec 2022 11:36:24 -0500 Subject: [PATCH] NewPost View at bottom bar navigator --- App.js | 48 +++++++++++++++++++++++++++++++++++++++++++++--- Views/NewPost.js | 15 +++++++++++++++ 2 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 Views/NewPost.js diff --git a/App.js b/App.js index 1afa62f..badd3f7 100644 --- a/App.js +++ b/App.js @@ -17,6 +17,9 @@ import * as Device from 'expo-device'; import * as Notifications from 'expo-notifications'; import API from './API.js'; import i18n from "./i18nMessages.js"; +import NewPostView from './Views/NewPost.js'; +import { TouchableOpacity, View } from 'react-native'; + const Tab = createBottomTabNavigator(); const Stack = createNativeStackNavigator(); @@ -111,7 +114,9 @@ const MainNavigation = () => { { header: () => { <> }, }} /> + ( + + ), + tabBarButton: (props) => ( + + {props.children} + + ), + header: () => { <> }, + }} + /> { header: () => { <> }, }} /> - { ), header: () => { <> }, }} - /> + />*/} ) } @@ -215,6 +250,13 @@ export default function App() { tabBarLabel: i18n.t('message.profile') }} /> + diff --git a/Views/NewPost.js b/Views/NewPost.js new file mode 100644 index 0000000..f5d276f --- /dev/null +++ b/Views/NewPost.js @@ -0,0 +1,15 @@ +import { View } from "react-native"; +import NewPost from "../components/NewPost"; + + +let NewPostView = ()=>{ + return ( + + + + + + ) +} + +export default NewPostView; \ No newline at end of file