Skip to content

Commit

Permalink
memory-basket#14 Feat: Add All Page Button
Browse files Browse the repository at this point in the history
  • Loading branch information
minjun06 committed Jun 5, 2023
1 parent cfbbded commit 83834b4
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/navigations/Stack.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
//import { StatusBar } from 'expo-status-bar';
import { createStackNavigator } from '@react-navigation/stack';
import { Home, Question, Test } from '../screens';
// import { Home, Question, Test, Landing, Login, Extra, SelectType, SignUp, Splash } from '../screens';
import { Home, Question, Test, Landing, SelectType, SignUp, Splash } from '../screens';

const Stack = createStackNavigator();

Expand All @@ -20,7 +21,14 @@ const StackNav = () => {
<Stack.Screen name="Question" component={Question} />
<Stack.Screen name="Test" component={Test} />
{/* <Stack.Screen name="Result" component={Result} /> */}
{/* <Stack.Screen name="Intro" component={Intro} /> */}
{/* 필요하신 페이지들입니다 */}
<Stack.Screen name="Landing" component={Landing} />
{/* <Stack.Screen name="Login" component={Login} /> */}
<Stack.Screen name="SelectType" component={SelectType} />
<Stack.Screen name="SignUp" component={SignUp} />
<Stack.Screen name="Splash" component={Splash} />
{/* <Stack.Screen name="Extra" component={Extra} /> */}

</Stack.Navigator>
);
};
Expand Down
Empty file added src/screens/Extra.js
Empty file.
24 changes: 24 additions & 0 deletions src/screens/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ const Home = ({ navigation }) => {
title="치매 진단"
onPress={() => navigation.navigate('Test')}
/>
<Button
title="Extra"
onPress={() => navigation.navigate('Extra')}
/>
<Button
title="Landing"
onPress={() => navigation.navigate('Landing')}
/>
<Button
title="Login"
onPress={() => navigation.navigate('Login')}
/>
<Button
title="SelectType"
onPress={() => navigation.navigate('SelectType')}
/>
<Button
title="SignUp"
onPress={() => navigation.navigate('SignUp')}
/>
<Button
title="Splash"
onPress={() => navigation.navigate('Splash')}
/>
</Container>
);
};
Expand Down
11 changes: 10 additions & 1 deletion src/screens/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import Home from './Home';
import Question from './Question';
import Test from './Test';
import Extra from './Extra';
import SignUp from './SignUp';
import Landing from './Landing';
import Login from './Login';
import SelectType from './SelectType';
import Splash from './Splash';



//import List from './Result';
// import Intro from './Intro';

//export { Home, EnterName, List, Intro };
export { Home, Question, Test };
export { Home, Question, Test, Extra, SignUp, Landing, Login, SelectType, Splash };

0 comments on commit 83834b4

Please sign in to comment.