forked from memory-basket/front-end
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memory-basket#6 memory-basket#11 Feat: Tab Nav img color change, add …
…Title color
- Loading branch information
Showing
11 changed files
with
245 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,37 @@ | ||
import Navigation from "./src/navigations"; | ||
import React from "react"; | ||
import Navigation from './src/navigations'; | ||
import React from 'react'; | ||
import { useCallback, useEffect } from 'react'; | ||
import { useFonts } from 'expo-font'; | ||
import * as Font from 'expo-font'; | ||
|
||
export default function App() { | ||
return <Navigation></Navigation>; | ||
// const [fontsLoaded] = Font.loadAsync({ | ||
// 'my-custom-font': require('./assets/fonts/GyeonggiBatangTTF_Regular.ttf'), | ||
// // 'my-second-font' : require('../assets/fonts/SUIT-Regular.ttf'), | ||
// }); | ||
|
||
// const onLayoutRootView = useCallback(async () => {}, [fontsLoaded]); | ||
|
||
// useEffect(() => { | ||
// const loadFonts = async () => { | ||
// await Font.loadAsync({ | ||
// 'my-custom-font': require('./assets/fonts/GyeonggiBatangTTF_Regular.ttf'), | ||
// }); | ||
// }; | ||
|
||
// loadFonts(); | ||
// }, []); | ||
|
||
// useEffect(() => { | ||
// //SoundManager.loadSound(require('./images/bgm.wav')); | ||
// }, []); | ||
|
||
// if (!fontsLoaded) { | ||
// return null; | ||
// } | ||
|
||
return ( | ||
//<Navigation onLayout={onLayoutRootView}></Navigation> | ||
<Navigation></Navigation> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from 'react'; | ||
import { | ||
Text, | ||
View, | ||
Image, | ||
Button, | ||
ImageBackground, | ||
TouchableOpacity, | ||
} from 'react-native'; | ||
import styled from 'styled-components/native'; | ||
|
||
const Container = styled.View` | ||
height: 100%; | ||
align-items: center; | ||
`; | ||
const MainBody = styled.View` | ||
/* margin: 0; */ | ||
flex: 3; | ||
width: 100%; | ||
/* height: 200px; */ | ||
/* align-items: center; */ | ||
/* justify-content: center; */ | ||
`; | ||
const Background = styled.ImageBackground` | ||
flex: 1; | ||
`; | ||
|
||
const Garden = ({ navigation }) => { | ||
return ( | ||
<Container> | ||
<MainBody> | ||
<Background source={require('../../assets/img/garden.png')} /> | ||
</MainBody> | ||
</Container> | ||
|
||
|
||
// <View> | ||
// <ImageBackground | ||
// source={require('../../assets/img/garden.png')} | ||
// /> | ||
// </View> | ||
|
||
); | ||
}; | ||
|
||
export default Garden; |
Oops, something went wrong.