-
Notifications
You must be signed in to change notification settings - Fork 73
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
requireNativeComponent: "XXX" was not found in the UIManager #98
Comments
Views are set up a bit differently from modules. The views themselves aren't modules, but their managers are (e.g. there should be a If you need an example for that you can look at react-native-video's dom implementation. |
Thanks, that helped a lot! Now I'm stuck at a point where I have a component that has one native module inside another one (a Path within an Svg): <Svg viewBox="0 0 18 17" {...props}>
<Path d="..." />
</Svg> And I need the Right now it looks like this: Where And for SVGs to render we need it to look like this: Where Is that even possible? Update: I was able to hack something up using MutationObserver (by listening to DOM changes in on Update 2: Adding this line, after mutating the this.childContainer.innerHTML = this.childContainer.innerHTML; (but probably screwed things up) |
Oh, I didn't know you had the same issue. I solved it with Shadow DOM. |
Trying to create my own native module for SVG rendering I'm getting the following error when copying and pasting the FontLoader example:
Update
I've successfully upgraded to RN 0.57.0 and RND 0.5.0 :)
Now I'm getting the following error when trying to create and component to replace SVG:
The code for the native module is:
The SVG library I'm using is
react-native-svg
.The text was updated successfully, but these errors were encountered: