Most of the sample apps about react-native on git-hub have just a single activity and rendering react-native code inside that. Can we render react component inside a fragment? If yes how?
Related
I have a native camera activity written in kotlin, and i want to launch this activity without hiding the bottom tab navigation written in react.
But for now whenever a native activity launches the react navigation disappears.
Is there any way to achieve this?
Native base components showing blank page in react native android but when i am using react native components like View or Text then its work. Please help me. I think there are versioning issue.
How can I use konvajs library with react native. If not, is there any other library which allows defining canvas object declaratively for react native?
React native doesn't use an html5 view, it render native code so you wouldn't be able to use konvasjs, take a look at react-native-canvas, and see if it fits what you need.
I did some search to find a tree component in react native.
But I can't seem to find one.
Is there no react native tree component?
What to do if one needs a tree component?
you can use this library
react-native-final-tree-view
and here you can find a good example for it :
React Native Tree View for Android and IOS devices
Update: This library is not any more maintained.
React native have no tree component. But there are some npm packages are available for tree component.
https://www.npmjs.com/package/react-native-treeview
Can I use react native as a backend in Android
I want to use all the UI components from Android only but for the logic part I want to call react native and do the backend there
Is it possible ?
Let me summarize your question to see if I got it right: You would like to use Native UI Components in Android and compose/utilize them using React Native.
If so the answer is yes. React Native does nothing else under the hood, they try to map as directly as possible to the native UI concepts. If this is still too much JS UI layer for you, you can directly implement the Native UI Components you need and bridge them into React Native, as to be seen here.
As React native is doing for us to convert and other component in native android component. If you don't want to use this react native component code then you have to create native android module in react native to use native component. But it's not advisable.