-
Notifications
You must be signed in to change notification settings - Fork 820
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 fixed position for prototypes #507
Comments
I think the easiest is to extend the |
Hmm, that could work. |
Yeah. I like having all of them in a |
Great, will open a PR then. Maybe worth creating a new docs page on prototyping too? I think it's a really interesting use-case for React Sketch.app – creating Sketch Cloud web or Sketch Mirror prototypes for React Native codebases. |
Sounds good. Your |
I am...
| -------------------------------------------------------------------------------------------------
Proposal/Feature-request:
Would be great to support some kind of version of
position: fixed;
to be used in Sketch prototypes. Fixed position translates nicely to Sketch'sFix position when scrolling
. This would allow for having bottom navigation tab bars, etc in prototypes.React Native doesn't support
position: fixed;
though, so if the same component/styling is used in a React Native app, it may break it. Some alternative ideas that should solve that:react-sketchapp
only styling prop: e.g.prototypePosition: 'fixed'
position: 'fixed'
, but document that this could be platform specific (`position: Platform.OS === 'sketch' ? 'fixed' : 'relative')ScrollView
component, and have anArtboard
prop that makes anything not inside this component fixed. Not sure how much value this would have though for code re-use between web and React Native though when components likeFlatList
are more likely to be used.The text was updated successfully, but these errors were encountered: