Is there a way to use this to create an UI library? #533
Unanswered
johhansantana
asked this question in
Q&A
Replies: 1 comment 2 replies
-
That means you have multiple instances of React. Did you follow the development workflow as documented in the project? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create an UI library for our project separated from our original source code. I tried using this and I installed the example javascript init project that the cli creates and imported the
multiply
function and it works but as soon as I modify the original file to add areact-native
View
orText
component and try to import that in my project it gives me errors likeCannot read property 'useContext' of null
or
Cannot read property 'useState' of null
this is my modified file that I try to import:
as soon as I import
TestLibrary
it gives me the errors.note that the command I used to scaffold the project was
npx create-react-native-library@latest awesome-library
and the project consuming the library is a react-native project without expo
Beta Was this translation helpful? Give feedback.
All reactions