SOLVED nothing to do with Refine it was
SOLVED: nothing to do with Refine, it was Expo cache issue, options to disable both work fine on Expo/react native
I am not sure where should I write it so I am going with #general π
I am using Refine v4 in Expo/React Native app. It works as expected for web, but for mobile app I run into errors concering Telemetry (use of Image) and React Query Dev Tools (use of window functions). Disabling both didn't solve the isseue, as they were still present in dist production bundle and cause error. After removing both blocks app runs more or less as expected (still have problem firth firebase, but that is refine-firebase issue possibly).
I will investigate further, so I have some solid feedback or pull request, just letting you know. Maybe anyone run into similar issues?
11 Replies
eager-peachβ’2y ago
We have plans to support React Native in the future, but currently, we haven't tested with React Native. Of course, you can open an issue, and we would be happy to debug. However, as I mentioned before, we haven't tested with React Native, and it is not our current priority. If the issue is complex and requires a considerable amount of time, I don't know if we can prioritize react-native issues. But, we will discuss with the core team.
refine-firebase is developed by the community, not the core team. But the developer behind it is quite active.
π I'm happy to hear that
I think you are our first React Native user. Congrats!
fascinating-indigoβ’2y ago
Happy to provide feedback, but so far my usage is limited to DataProvider, and AuthProvider (both firebase) and my custom NotificationProvider build for Gluestack-UI Toast
fascinating-indigoβ’2y ago
I found what was the issue with refine-firebase: https://github.com/resulturan/refine-firebase/pull/12
GitHub
Allow for inMemoryPersistence by michalkow Β· Pull Request #12 Β· res...
Add an option to have inMemoryPersistence for React Native, since browser persistence causes errors.
My solution is not the most elegant, but would preserve the default option and only use inMemory...
like-goldβ’2y ago
Hello,nice work ,so can you confirm that we can use refine in react native without bridge or any adding lib in adnroid or ios ?
fascinating-indigoβ’2y ago
I am on Expo 48.0.15, and React Native 0.71.8, Refine works out-of-the-box, tested for web and android, didn't have time to test on ios yet.
Just need to set
disableTelemetry: true
and devtoolConfig: false
rare-sapphireβ’2y ago
Hello @.michalkow , happy to hear that you had smooth experience!
If you like to contribute to the refine, feel free to create a react-native example in our examples directory, that would be great and highly appreciated! π
like-goldβ’2y ago
Plz can you share the demo or just write some readme in GitHub ,I think itβs a good think
fascinating-indigoβ’2y ago
I will try to put something together next week
exotic-emeraldβ’2y ago
Hej MichaΕ, Did you had any issues when tryign to use Firebase AuthProvider? I'm getting "Firebase: Error (auth/missing-email)" when trying to login with Google Sign-In.
fascinating-indigoβ’2y ago
@graym. Hey! Sorry I was not on Discord in a while, I hope you solved it, but just in case - you need to use legacy version of firebase auth