Skip to Main Content
React Projects
book

React Projects

by Roy Derks
December 2019
Intermediate to advanced content levelIntermediate to advanced
474 pages
10h 3m
English
Packt Publishing
Content preview from React Projects

Styling React Native applications

The syntax you've used so far to style React Native components in this application looks a bit different from what you've used already. Therefore, you can install styled-components to use the syntax for writing styles you're already familiar with. To install this, you need to run the following command:

npm install styled-components

This will install the styled-components package, after which you can proceed by creating styling for the components that are already present in your application:

  1. Let's start by transforming the View and FlatList components in the Screens/Home.js file into styled-components. To do this, you need to import styled from styled-components/native as you only want to import the specific ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React Projects - Second Edition

React Projects - Second Edition

Roy Derks
Test-Driven React

Test-Driven React

Trevor Burnham

Publisher Resources

ISBN: 9781789954937Supplemental Content