Styling React Native Applications
The share of native web content consumed on mobile devices is increasing, and in many categories is already more than the share consumed by desktop. In this course, you'll learn to style React Native applications so they look good on all devices.
What you'll learn
Mobile devices are what many users use to browse the web, but developing apps that simultaneously work on Android, iOS, and in web browsers can be an expensive, time-consuming, and baffling process. In this course, Styling React Native Applications, you’ll learn to style React Native applications, resulting in a consistent and professional appearance on multiple different mobile platforms, with only one code base. First, you’ll see how to apply basic styling to your React Native application using the Stylesheet.Create() method and applying fixed dimensions and positioning to the elements of the page, creating simple and consistent, though inflexible, basic layouts. Next, you’ll discover how to create more robust and dynamic layouts by using Flex styling instead of fixed dimensions, enabling you to create a wider variety of layouts including vertically and horizontally arranged sections, as well as elements that automatically resize to fit the context. Finally, you’ll explore how to animate your application using the LayoutAnimation API, creating fluid transitions between application views and the states within each view. The animation skills you'll learn will enable you to create engaging and interactive applications on all platforms. When you’re finished with this course, you’ll have the skills and knowledge of styling React Native applications to confidently and independently apply robust styles to any application you are assigned to work on, or to build your own applications easily and with minimal code.
Table of contents
- Version Check 0m
- Introduction 2m
- Overview of Native Application Styling 4m
- Setting up the Demo Application 7m
- Understanding Fixed Dimensions 2m
- Composing Stylesheets with Stylesheet.create() 3m
- Applying Fixed Dimension Styles to the Application: Part I 11m
- Applying Fixed Dimension Styles to the Application: Part II 5m
- Summary 2m
- What Is Flexbox? 5m
- Transitioning from Fixed Dimensions to Flex Dimensions 2m
- What Is Flex Direction? 1m
- Demo: Applying Flex Dimensions and Layout Direction to the Application 10m
- Applying Flex Dimensions to Images 4m
- Aligning Elements with Justify Content and Align Items 3m
- Demo: Aligning Flex Elements 4m
- Displaying Collections with Flex-wrap 1m
- Displaying Collections with Flex-wrap Demo 8m
- Increasing Compatibility across Devices 2m
- Demo: Increasing Compatibility across Devices 10m
- Summary 2m