These configs are based in setup.js
and package.json
from React Native Template Typescript.
-
If you starting your project now, I recommend to use the typescript template, with the following command:
react-native init MyApp --template typescript
-
Keep the root
index.js
file with.js
extension. -
If you use PropTypes before the migration, you can delete its package running: