[add] Scaffold for mobile & desktop

This commit is contained in:
mathysPaul
2023-09-27 17:31:09 +02:00
parent 3ca17338e8
commit 1228eb603e
6 changed files with 450 additions and 6 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
import React from 'react';
import { Center, Text } from 'native-base';
import { Center, Flex, Text } from 'native-base';
import ProfileSettings from './SettingsProfileView';
import NotificationsView from './NotificationView';
import PrivacyView from './PrivacyView';
import PreferencesView from './PreferencesView';
import { View, useWindowDimensions } from 'react-native';
import { useWindowDimensions } from 'react-native';
import {
TabView,
SceneMap,
@@ -110,7 +110,7 @@ const SetttingsNavigator = () => {
);
return (
<View style={{ width: '100%' }}>
<Flex style={{ flex: 1 }}>
<TabView
style={{ height: 'fit-content' }}
renderTabBar={renderTabBar}
@@ -119,7 +119,7 @@ const SetttingsNavigator = () => {
onIndexChange={setIndex}
initialLayout={{ width: layout.width }}
/>
</View>
</Flex>
);
};