-
I've been trying to google this for weeks and it's been extremely hard to actually find the question/answer I'm looking for. Is there any way for RNW to take a ReactNative component, for example: const UserName: React.FC<{ user: userObject}> =({ user} => {
return (
<View><Text>{user.name}</Text></View>
);
} And give me a react usable component? The app I'm working on is very large and converting the entire app to RNW isn't currently an option, but we also have a RN app for iOS. My goal is to be able to create a RN component in a shared library and use the base RN component on mobile, and use a generated/compiled version in our React web app. If anyone has any insight of can point me in the right direction please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can run this code with RNW alongside existing React DOM code |
Beta Was this translation helpful? Give feedback.
You can run this code with RNW alongside existing React DOM code