본문 바로가기
개발로그/ReactNative

처음 생성한 프로젝트에 필요없는 부분 삭제하기 with npx create-react-native-app

by 그리너리디밸로퍼 2022. 12. 28.

2022.12.28 - [개발로그/ReactNative] - 비어있는 기본 프로젝트를 생성해보자. create-react-native-app

package.json
0.00MB
npx create-react-native-app 으로 생성된 프로젝트 폴더구조

App.js

아래 styles 를 비롯한 App() 의 return 도 null 로 바꿔준다. 

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

삭제 전 

최초  App.js

정리 후 App.js

정리 후 App.js

 

728x90

댓글