Skip to content

iOS module not importable after install #107

@grisaitis

Description

@grisaitis

I'm having an issue with importing modules created with this utility.

If I...

  1. create a library, and run npm install in the folder
  2. create a project somewhere else
  3. install the library /at/its/path with react-native install in my project
  4. and then import RNMyLibrary from 'react-native-my-library';

I see that the value for RNMyLibrary is null.

Am I doing something wrong?

Also, if I modify the Objective C code and add a method to the module, like in the docs example with the iOS calendar API, I get an error that null has no method. Something is weird with my import, and I'm not sure what.

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