Skip to content

requireNativeComponent: "XXX" was not found in the UIManager #98

@dutzi

Description

@dutzi

Trying to create my own native module for SVG rendering I'm getting the following error when copying and pasting the FontLoader example:

Uncaught TypeError: Super expression must either be null or a function, not undefined

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:

requireNativeComponent: "RNSVGSvgView" was not found in the UIManager.

The code for the native module is:

import { RCTModule } from 'react-native-dom';

export default class RNSVGSvgView extends RCTModule {
  static moduleName = 'RNSVGSvgView';
}

The SVG library I'm using is react-native-svg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions