My native module doesn't work #10676
-
Hello, but when I ran my app, it says |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
My module haven't autolinked. so I had to manually link it. |
Beta Was this translation helpful? Give feedback.
-
Here are upload and export samples - https://github.com/jbcullis/react-native-windows-fs Nb. These aren't generic so you'll need to make some adjustments based on your needs. |
Beta Was this translation helpful? Give feedback.
-
It looks like you've created the native project on your own, so you're not referencing any of the Microsoft.ReactNative dependencies you need to build a native module. Please read https://microsoft.github.io/react-native-windows/docs/native-modules-setup#creating-a-new-native-module-library-project to see how you can use |
Beta Was this translation helpful? Give feedback.
It looks like you've created the native project on your own, so you're not referencing any of the Microsoft.ReactNative dependencies you need to build a native module.
Please read https://microsoft.github.io/react-native-windows/docs/native-modules-setup#creating-a-new-native-module-library-project to see how you can use
react-native-windows-init
to set up your project with the correct dependencies.