Can I use jotai-devtools in react native apps? #56
-
link: https://jotai.org/docs/tools/devtools |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We'll need to import the hook using a second entry point (without the Eg. import { useAtomsDevtools } from 'jotai-devtools/utils';
export const DevTools = () => {
useAtomsDevtools('store-name-here');
return null;
}; If you're using Expo or Metro to bundle your RN app, you may run into issues with this entry point above due to Expo/Metro's experimental support for |
Beta Was this translation helpful? Give feedback.
-
Hello there, jotai-devtools is a development tool for the Jotai state management library that provides a visual representation of the state tree and the ability to modify state values during development. While Jotai itself can be used in React Native apps, jotai-devtools is designed to work with the React DevTools extension, which is not available in React Native. Therefore, jotai-devtools is not compatible with React Native and cannot be used in a React Native app. I would like to recommend a book on React Native/JS |
Beta Was this translation helpful? Give feedback.
<DevTools/>
is web-only. For React Native apps, we currently recommend using Redux DevTools as a debugging solution via theuseatomsdevtools
.We'll need to import the hook using a second entry point (without the
@mantine/core
) to do this.Eg.
If you're using Expo or Metro to bundle your RN app, you may run into issues with this entry point above due to Expo/Metro's experimental support for
export
. This comment might help in that case