1

I am trying to write ReactJs app and I found a useful React-Native library. Will I be able to use it in my code?

2 Answers 2

2

Nopes, its not recommended, since react-native library may have <View> and other components which are react-native specific and can blow up in react js

Sign up to request clarification or add additional context in comments.

2 Comments

@newCoder You can accept the answer if it helped you. Thanks :)
Please accept the answer by clicking on tick sign besides the answer. Thanks :)
0

You can not use react native library in react project because they both have different dependencies while as react compiles with the help of webpack but in react native there are OS-level dependencies while making the build and the main difference is that React Native totally depends on native models of OS and does not use any HTML like React or other web-development frameworks.

refer this doc for more detail

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.