React Native Styling

From bibbleWiki
Revision as of 12:23, 14 December 2020 by Iwiseman (talk | contribs) (Created page with "=Overview= ==Stylesheet.create()== Camel Case is used and an object created. There are no px suffixes for pixel values. Should work on all devices. The names do not necessary...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Stylesheet.create()

Camel Case is used and an object created. There are no px suffixes for pixel values. Should work on all devices. The names do not necessary align with Android or IoS name. Only works on React components and not standard tags like div

const styles = Stylesheet.create({
   container: {
      backgroundColor: "white",
      height: 470.
   }
})