We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be cool if we could apply this plugin only in development mode, much like react-query-native-devtools does.
react-query-native-devtools
The text was updated successfully, but these errors were encountered:
thats how @react-navigation/devtools is doing it
const noop: any = () => {}; export let useReduxDevToolsExtension: typeof import('./useReduxDevToolsExtension').default; export let useFlipper: typeof import('./useFlipper').default; if (process.env.NODE_ENV !== 'production') { useReduxDevToolsExtension = require('./useReduxDevToolsExtension').default; useFlipper = require('./useFlipper').default; } else { useReduxDevToolsExtension = noop; useFlipper = noop; }
For the time being I am doing this:
import UnsecureStorage from "@react-native-async-storage/async-storage" let RNAsyncStorageFlipper: typeof import("rn-async-storage-flipper").default if (process.env.NODE_ENV !== "production") { RNAsyncStorageFlipper = require("rn-async-storage-flipper").default RNAsyncStorageFlipper(UnsecureStorage) } export default UnsecureStorage
Sorry, something went wrong.
No branches or pull requests
It would be cool if we could apply this plugin only in development mode, much like
react-query-native-devtools
does.The text was updated successfully, but these errors were encountered: