My app crashes when I start to run it in production mode. In dev mode all works correctly. Only logs I have on the screen. What can I do?
I used: "expo": "38.0.10", "react": "^17.0.1", "react-dom": "^17.0.1", "react-native": "~0.62.2",
I found my problem. It's all because of wrong auto import.
I have imported useState from "react/cjs/react.development", not from 'react'.
Instead
import { useState } from "react/cjs/react.development";
I need write
import React, { useState } from "react";
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments