Skip to content
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

Support React Native #9

Open
kumar303 opened this issue Sep 6, 2020 · 0 comments
Open

Support React Native #9

kumar303 opened this issue Sep 6, 2020 · 0 comments

Comments

@kumar303
Copy link
Owner

kumar303 commented Sep 6, 2020

Currently, skeleton-kit only supports the web. This ticket is about supporting an implementation that can be used in React Native.

What's needed?

  • A native animation implementation
  • Style definitions that are compatible with React Native
  • A way to render React Native host nodes such as Text
  • A solid example app to show it in action

I once made a prototype to see how hard it would be to support both from the same implementation using react-native-web for the web part.

Notes on this prototype:

  • Telling web users to rely on react-native-web seems a bit heavyweight. At the very least it requires tree shaking in the bundling step.
  • I used react-native-extended-stylesheet for web-like things such as rem units but ran into a blocker for unit testing.
  • The react-native-extended-stylesheet lib requires an awkward initialization step
  • All in all, it could be used as inspiration if someone wants to pick up this ticket
  • It might be simpler just to introduce a compatibility layer at skeleton-kit/native using styled-components/native
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant