Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJustin Rich
19,556 PointsReact Native: Style Sheets?
I know in the video the instruct using inline styling for React Native. However, can style sheets be imported and used? I know this is possible in React, I'm wondering if it's true for native. For me using a style sheet is a general preference as animations and transitions are more more intuitive for me with a stylesheet.
1 Answer
Seth Kroger
56,413 PointsA straight CSS stylesheet, no, but a Google search shows some 3rd party modules out there that allow you to translate snippets.
You could put a React Native-style style object in a file that can be imported I suppose.
[moved to JS as this is a React Native question, not a CSS question]