Improving UX Design with React Native Features
Front-end Development for a React Native project isn’t the easiest task, as some of you may know. If you’re an experienced React Developer and/or fluent in your sass skills, you may think, “It can’t be that different, right?”
Luckily, after working on numerous React Native projects here at Revelry, I’ve seen my fair share of common issues and I’ve learned so much from them. As I continue to work on these projects, my Native knowledge base continues to grow. It’s definitely a new challenge to take on, but very rewarding in the end!
Here are some key components and resources to help you improve your UX design with React Native.
ScrollView Fixed Header
The React Native Fixed Header/Footer is a fun tool to help improve the user experience of your app. A basic ScrollView Header scrolls with the user so they have links, headers, or back buttons on their screen at all times. This is especially useful when your app has long lists of items to scroll down to.
If you want to amp up your UX even more, the React Native ScrollView animated header adds that extra pop of animation, allowing you to show items at the top of the screen, and then the ScrollView transitions down with the user as they begin to scroll down the page. I find these small additions make the experience that much better.
To begin, I always do some thorough research and make sure I have all of the tools and resources I may need, along with plenty of pairing time from a programmer so you can work together to get everything set up properly.
The effort is worth it because the final product looks clean and functions great!
React Native modals are somewhat easy to set up, compared to animations and some other components. If you follow this reference step-by-step, you’ll have a working Modal in no time.
Styling the Modal component is also less of a headache, fortunately. It’s easily reusable, which is a plus.
At Revelry, we typically try to use Modals as seldom as possible. But they work well for these instances.
A loading spinner, or Activity Indicator component, is very easy to set up and style for a Front-Ender, especially if you already have a modal component and container styles that exist.
Activity Indicators are great to use for checkout flows, long-form submissions, or any screen that may take a few seconds to load.
This improves the overall UX for the user. It helps assure them that they are on the right track to finish the user flow, without causing any doubt about a buggy app.
You can also add an Activity Indicator within a button, called a BusyButton, or an AwesomeButton.
Carousels with Pagination
The React Native Snap Carousel looks great, and it creates a better UX so the user can easily swipe through each item. And, it transitions really well.
If you want to show something such as a list of tickets, images, or anything that contains multiple items with a lot of information on each, this is a good resource for you.
We’ve also paired the React Native Snap Carousel with the React Native Pagination component that comes available together. Their props are easy to set up, and I had little to no stylesheet bugs or overrides.
Using a Pagination component on a slideshow is a vital piece for the user, so they are aware of how many items they are swiping through without missing anything or having trouble navigating to a desired item.
I would recommend scanning through the tips and tricks section before getting started. It helped me debug and solve a few of common issues that I came across.
Improve User Experience!
I hope these ideas and resources will help you tackle these React Native features! This should set you well on your way to improving your User Experience.
The sooner you start dabbling in React Native code and setting up components like these, the better you’ll become as a Native developer. All it takes is practice, a basic understanding of the markup, and most of all, patience.
Building these components may be a little time consuming, but in the end, your product’s UX is going to go from a basic snooze-fest to a “wow, I’m really proud of this” kind of project.
Want to learn more about organizing styles in React Native? Daniel’s post breaks down stylesheet setup with base style and component examples to help get you started!
The Revelry team works to identify business problems and solve them using technology.