React Native Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

In a real application, we're going to use several buttons, sometimes with an icon aligned to the left, a label, different sizes, colors, and so on. It's highly recommended to create a reusable component to avoid duplicating code all over our app. In Chapter 3, Implementing Complex User Interfaces – Part I, we'll create a button component to handle some of these scenarios.