2025. 5. 18. 17:23

1. react-navigation 태그에 options로 추가

 

const options = { headerShown: false };

 

<Stack.Screen name="Splash" component={SplashScreen} options={options}/>

 

2. 자체 스크린에서 옵션으로 추가

 

const SplashScreen = ({navigation}) => {

useLayoutEffect(() => { navigation.setOptions({ headerShown: false })});

2025. 5. 18. 16:59

0. /assets/fonts 에 .ttf 파일 복사

 

1. npx react-native-assets

 

2. react-native.config.js 파일 생성 후 다음 작성

module.exports = {

project: {

ios: {},

android: {}

},

assets: ['./assets/fonts/']

}

 

3. jsconfig.json 에 다음 작성

{

"compilerOptions": {

"baseUrl": ".",

"paths": {

"@/*":["*"]

    }

  }

}

2025. 5. 18. 15:31

매번 중요해서 두 번 적는다