Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Lightning-Fast Mobile App Development with Galio
  • Toc
  • feedback
Lightning-Fast Mobile App Development with Galio

Lightning-Fast Mobile App Development with Galio

By : Gheorghe
close
Lightning-Fast Mobile App Development with Galio

Lightning-Fast Mobile App Development with Galio

By: Gheorghe

Overview of this book

Galio is a free open source React Native framework that enables beginner-level programmers to quickly build cross-platform mobile apps by leveraging its beautifully designed ready-made components. This book helps you to learn about React Native app development while building impressive out-of-the-box apps with Galio. Lightning Fast Mobile App Development with Galio takes a hands-on approach to implementation and associated methodologies that will have you up and running and productive in no time. Complete with step-by-step explanations of essential concepts, practical examples, and self-assessment questions, you will begin by exploring the basics of React Native and understanding how Galio works. As you make progress, you'll learn how to initialize and configure a React Native app and get to grips with the basics of React Native development. You'll also discover how packages work and how to install Galio as the main dependency, along with understanding how and why Galio helps you to develop apps with ease. Finally, you'll build three practical and exciting apps using React Native and Galio. By the end of this app development book, you'll have learned how to use Galio to quickly create layouts and set up React Native projects for your personal ideas.
Table of Contents (14 chapters)
close

Other hooks and why they're relevant

The main problem with state is the fact that the only way we can use it is in a class component. Class components are generally seen as a bit ugly and hard to learn for some beginners, so the React team tried creating something new that promised to solve the problems beginners and advanced users could have gotten into while using a class component with the traditional use of state. This is how hooks were born.

Hooks were introduced in React v16.8 and React Native v0.59. They basically let you use state and other React features without writing a class.

So, what exactly does that mean for us? Let's look at an example of how state is written with our new hooks feature:

Figure 7.11 – Example of using hooks

Woah! So, what do we have here? Is this really the same state feature we've been using so far? Yes, it is. If you were to copy this code into a fresh new project, you'd see that once you...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete