Book Image

Lightning-Fast Mobile App Development with Galio

By : Alin Gheorghe
Book Image

Lightning-Fast Mobile App Development with Galio

By: Alin 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)

Automatic scrolling

To finish building this project, we're going to have to create a button that moves the slides whenever we press it. We already have the <Button /> component imported from 'galio-framework', so let's implement it underneath our <Paginator /> component:

Figure 10.16 – The Button component added to our onboarding screen

As you can see, I've implemented Button below <Paginator />. I've added the same color our images and dots are and removed the shadow via the shadowless prop. Now that we know that our function needs to be called whenever we press the button, we need to create a function and then link it to our onPress prop.

But before we do that, we need to make sure we have anything in place for our button to work whenever we need it to.

First, we need to think about how we can get to the next slide without swiping through our list of slides. Well, we'll need a reference to...