Search code examples
javascriptreactjsreact-nativeexpoexpo-go

React native expo emulator force closed


When I try to run npm run android, the app opened and then shows this screen:

android emulator

Then it immediately force closes the app. How can I fix this?


Solution

  • This error comes when you apply fontWeight as a number. ex: fontWeight: 600

    but in the react-native stylesheet, you have to apply fontWeight as a string

    fontWeight:"600"