Tuesday, October 1, 2019

Cloning Tinder Using React Native Elements and Expo

Cloning Tinder Using React Native Elements and Expo

Making pixel-perfect layouts on mobile is hard. Even though React Native makes it easier than its native counterparts, it still requires a lot of work to get a mobile app to perfection.

In this tutorial, we’ll be cloning the most famous dating app, Tinder. We’ll then learn about a UI framework called React Native Elements, which makes styling React Native apps easy.

Since this is just going to be a layout tutorial, we’ll be using Expo, as it makes setting things up much easier than plain old react-native-cli. We’ll also be making use of a lot of dummy data to make our app.

We’ll be making a total of four screens—Home, Top Picks, Profile, and Messages.

Prerequisites

For this tutorial, you need a basic knowledge of React Native and some familiarity with Expo. You’ll also need the Expo client installed on your mobile device or a compatible simulator installed on your computer. Instructions on how to do this can be found here.

You also need to have a basic knowledge of styles in React Native. Styles in React Native are basically an abstraction similar to that of CSS, with just a few differences. You can get a list of all the properties in the styling cheatsheet.

Throughout the course of this tutorial we’ll be using yarn. If you don’t have yarn already installed, install it from here.

Also make sure you’ve already installed expo-cli on your computer.

If it’s not installed already, then go ahead and install it:

$ yarn global add expo-cli

To make sure we’re on the same page, these are the versions used in this tutorial:

  • Node 11.14.0
  • npm 6.4.1
  • yarn 1.15.2
  • expo 2.16.1

Make sure to update expo-cli if you haven’t updated in a while, since expo releases are quickly out of date.

We’re going to build something that looks like this:

Tinder Demo in Expo

If you just want to clone the repo, the whole code can be found on GitHub.

Getting Started

Let’s set up a new Expo project using expo-cli:

$ expo init expo-tinder

It will then ask you to choose a template. You should choose tabs and hit Enter.

Expo Init - Choose A Template

Then it will ask you to name the project. Type expo-tinder and hit Enter again.

Expo Init - Name the Project

Lastly, it will ask you to press y to install dependencies with yarn or n to install dependencies with npm. Press y.

Expo Init - Install the dependencies

This bootstraps a brand new React Native app using expo-cli.

React Native Elements

React Native Elements is a cross-platform UI Toolkit for React Native with consistent design across Android, iOS and Web.

It’s easy to use and completely built with JavaScript. It’s also the first UI kit ever made for React Native.

It allows us to fully customize styles of any of our components the way we want so every app has its own unique look and feel.

It’s also open source and backed by a community of awesome developers.

You can build beautiful applications easily.

React Native Elements Demo

Cloning Tinder UI

We’ve already created a project named expo-tinder.

To run the project, type this:

$ yarn start

Press i to run the iOS Simulator. This will automatically run the iOS Simulator even if it’s not opened.

Press a to run the Android Emulator. Note that the emulator must be installed and started already before typing a. Otherwise it will throw an error in the terminal.

It should look like this:

Expo Tabs App

The post Cloning Tinder Using React Native Elements and Expo appeared first on SitePoint.


by Akshay Kadam via SitePoint

Website Inspiration: Meet the new Twitch

Fun announcement One Pager by Twitch showcasing their vibrant rebrand.

Full Review


by Rob Hope @robhope via One Page Love

Research Reveals When Brands and Billionaires Will Join the Trillion Dollar Club

Microsoft has recently become the latest company to join Wall Street’s exclusive ‘Trillion Dollar Club’ after reaching the target market capitalization in late April. Now, as America's most valuable company, they join Apple in the club, who have seen huge growth over recent years. And while no...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Irfan Ahmad via Digital Information World

85 percent spam email contains a link to download data rather than attached files

There’s a new technique used by spammers in Malspam that contains malicious URLs instead of file attachments and this surely needs our attention. According to a report, more than 85% of malware email also known as malspam sent in months between April to June contained links to download malicious...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by agha ali via Digital Information World

Article: The Top 5 One Pagers from September 2019

Here are the Top 5 Single Page websites featured on the One Page Love website in September. Hope they keep you inspired to create your own beautiful One Pagers – enjoy!


5. Website Inspiration: Document Generator

Great looking Landing Page with generous whitespace for a business Document Generator powered by Qwilr.


4. Website Inspiration: Genesis Block

Very impressive Landing Page built using Webflow for crypto startup Genesis Block. As you scroll the block illustrations animate beautifully, leading up to a Typeform-integrated questionnaire.


3. Website Inspiration: Universal UI Kit

Beautifully design and well-executed Landing Page built using Readymag promoting the Universal UI Kit by Forpeople Studio. As you scroll the card-style blocks and elements animate creating a splendid preview of the product.


Enjoying the round-up? Get these round-ups in our Inspiration Newsletter 💌


2. Website Inspiration: Aristide Benoist

What a great idea combining a birth year (forming the copyright) into a preloader in this One Page portfolio for Aristide Benoist. Shout out to the Founders Grotesk and Schnyder type too, lovely!


1. Website Inspiration: Brittany Chiang

Slick, dark-schemed One Page portfolio for Boston-based software engineer, Brittany Chiang. Note the attention-to-detail throughout from the subtle hover effects, the beautiful work history carousel, the additional projects load transition and the consistent color scheme with green accent.


Hope you enjoyed these beautiful One Pagers from September! Which was your favorite?


by Rob Hope @robhope via One Page Love

The Habits of Highly Effective Leaders (infographic)

We often fail to address what it means to be a leader within the workplace. This entails the behaviors that come along with the title. Leaders should be equally accountable for their responsibilities as team members are as they are in a position to guide their team to the highest foreseeable path....

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Web Desk via Digital Information World

iOS 13 encourages Apple users to take data privacy seriously

Is iOS 13 becoming a nightmare for tech companies? Recently, Apple announced it’s updated operating system with the launch of its new model phones and yes we all are loving it right? But along with the new iOS, we think Apple just highlighted some major issues of social media apps that we always...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by agha ali via Digital Information World