-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use .native.tsx
instead of .web.tsx
#579
Comments
Further: we should remove the usage of StyleSheet.create in the web file. Creating the style, and then subsequently flattening it, is unnecessarily expensive with React Native Web. It's better to just use an object and pass it to a flat style prop. This would also remove the dependency on I've maintained so many RNW libraries, and I encourage you to avoid the headache of using it under the hood unless it's actually necessary |
@nandorojo Thanks for opening this issue. We're definitely open to such contribution, feel free to submit a PR. Just one more thing – let's introduce |
PR opened here #582 |
Damn it, just saw this lol. I'll revert |
React web apps don't use the
.web.tsx
pattern. However, all native apps do use platform extensions.I'd propose changing
MarkdownTextInput.tsx
to have the web code, andMarkdownTextInput.tsx
to have the React Native code. This way, Web developers don't need additional config to install the library.I'm happy to do this in a PR if you'd merge it.
The text was updated successfully, but these errors were encountered: