-
Notifications
You must be signed in to change notification settings - Fork 191
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
Created Library Does Not Work When Actually Imported In External React Native app #344
Comments
Hey I've got some questions:
I suspect the |
Same here. I could see the same issue. |
@trinadhkoya Could you share more details? A reproducable repository would be awesome so we could take a look at the root cause. |
For my case
|
Iam geeting the same issue with android. |
It works in an RN App with version 0.73.7, but not in 0.64.4. |
I recently ran into the same issue and figured out the reason in my case. My project is a monorepo, having a non-standard folder structure. In a standard React Native project, I am very curious about this since I have also installed many other npm packages and they work perfectly with monorepo and don't require to be installed in exactly the same spot where the |
Description
Created a library like so:
Modified it slightly, re-build it in
/example
, thenyarn start
to serve the app.It built, ran, and worked as expected. No warnings. No errors.
I ran
yarn release
and it steps through the npm publishing and the Github release creation.It successfully creates the npm package.
I then ran the following commands to scaffold a new project and install the packages:
I import and use the library I created and once I click on a button to interact it with it, I see this:
I've run
pod install
- I've re-built the app - and I'm not using Expo Go.My native module was an extremely simple extension of the original base project.
Not sure where to go from here. Appreciate any tips or suggestions. Thanks
Packages
Selected options
Native Module
Swift + Java
Link to repro
No response
Environment
info Fetching system and libraries information...
System:
OS: macOS 13.0
CPU: (10) arm64 Apple M1 Pro
Memory: 82.97 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.0/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
Watchman: 2022.11.28.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
The text was updated successfully, but these errors were encountered: