-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
React Native: undefined is not a function (evaluating 'Namespace.extend(Type)') #560
Comments
Unfortunately, I have practically no experience with React Native, so I have to guess:
One possible workaround could be to use a prebuilt bundle from dist/. These are made for browser environments, though, and do not really support require / import. If you have additional information or an idea, let me know! |
This now moved the extend implementation around which might or might not help with your issue, depending on what exactly is failing where. Please give it a try. If this doesn't resolve your issue, yet, a more general approach could still be examined. |
Unfortunately this does not solve the problem |
Please try again. If it raises another error now, please paste it here. |
It works! Great, thank you! |
Feel free to reopen if necessary! |
Can anyone confirm if this works with react-native? |
The 6.5.0 version works fine with React Native |
protobuf.js version: <6.1.0>
How to reproduce
Just import protobuf.js in ReactNative:
After rebuild the app it shows:
The text was updated successfully, but these errors were encountered: