November 2017
Beginner
294 pages
6h 55m
English
Styles aren't just for your hair; in this case, it will help to use a style sheet to make our code simpler, cleaner, and easier to maintain. Style reuse is very easy. Styles aren't a separate language; they are JavaScript like everything else in React. All of the core objects in React VR accept a prop named styles. We will define this style in our file and reuse it.
Create the following style definitions so that we can use them for the CameraData.js component (note that you can put this anywhere in the file):
const styles = StyleSheet.create({ manifestCard: { flex: 1, flexDirection: 'column', width: 2, alignItems: 'center', justifyContent: 'center', backgroundColor: 'green', opacity: 0.8, borderRadius: 0.1,Read now
Unlock full access