Skip to content
New issue

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

having issue with react-native #6

Closed
pkrinesh opened this issue Feb 8, 2023 · 5 comments
Closed

having issue with react-native #6

pkrinesh opened this issue Feb 8, 2023 · 5 comments
Assignees

Comments

@pkrinesh
Copy link
Contributor

pkrinesh commented Feb 8, 2023

zoov worked just fine with react but when i tried to use in react-native with expo managed flow. I am getting "TypeError: Object is not a function". I am sharing expo-snack link you can check. https://snack.expo.dev/@krinesh/zoov-demo.

Is zoov is not compatible with react-native or am i missing something here?

@InfiniteXyy InfiniteXyy self-assigned this Feb 9, 2023
@InfiniteXyy
Copy link
Owner

InfiniteXyy commented Feb 9, 2023

It's caused by the react-native bundle incompatibility.

Should be fixed in v0.5.2, would you mind check it?

@pkrinesh
Copy link
Contributor Author

pkrinesh commented Feb 9, 2023

Cool. It is working just fine.

I have updated the expo-snack to v0.5.2. zoov-react-native-snack

@pkrinesh pkrinesh closed this as completed Feb 9, 2023
@pkrinesh pkrinesh reopened this Feb 9, 2023
@pkrinesh
Copy link
Contributor Author

pkrinesh commented Feb 9, 2023

Hi

While using useuseTrackedModule with react-native getting an "Unable to resolve module zoov/tracked" error.

@InfiniteXyy
Copy link
Owner

InfiniteXyy commented Feb 10, 2023

Thanks for your feedback!

I refactored the publish folder structure, to make it compatible with webpack v4, and metro bundler. release in 0.5.3

Feel free to add some comment, if there is some other issues I didn't cover.

BTW, remember to install react-tracked, it's a essential dependency if you want to use useTrackedModule

@pkrinesh
Copy link
Contributor Author

Thanks for your fast response! and great work by the way.

Now it is working just fine and I am leaving it open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants