Giter Club home page Giter Club logo

basic-react-native-app's Introduction

Basic React Native App

Mission

You have to develop a React Native app that will work in both iOS and Android platforms. For convenience we are only going to test the app in iOS iPhone simulator. Your app will query a local JSON file and create a list of movies that are voted as top 10 movies of all time in IMDb.

IMDb Top 10 movies

This is the list of movies voted as the top 10 movies in IMDb by the users. The following is the link:

https://www.imdb.com/search/title?genres=drama&groups=top_250&sort=user_rating,desc

Our app is going to display the top 10 movies in IMDb by fetching the JSON data given in the local file. You can find the local JSON file attached to this project.

Prerequisite

We assume that you have React Native installed in your PC's. But for students whose PC doesn't have React Native, you need to follow the procedures step by step to get React Native installed:

https://www.npmjs.com/package/react-native

https://facebook.github.io/react-native/docs/getting-started

React Native

React Native is a JavaScript framework for writing real, natively rendering mobile applications for iOS and Android. It’s based on React, Facebook’s JavaScript library, but instead of targeting the browser, it targets mobile platforms.

You can learn more about React Native by reading and understanding the official docs:

https://facebook.github.io/react-native

Practicing with React Native

You can practice your React Native code using an online code editor. The following code editors are popular with developers and you may use them to practice your React Native code.

https://codesandbox.io/s/q4qymyp2l6

https://codepen.io/necolas/pen/PZzwBR

The App

The Following is the screenshot of the app which shows the top ten movies of IMDb using a scrollable view.

Waypoint 1: Create a skeleton React Native app

Create a basic React Native app that displays a text or an image.

Waypoint 2: Parse JSON file

Fetch information from parsed data.

WayPoint 3: Create stylish components

Create a stylish component that will hold each movies in the album.

WayPoint 4: Create movie components

Pass the fetched JSON data into stylish movie components.

WayPoint 5: Create Album

Create an album using the individual movie components and display them in a stylized scroll view.

WayPoint 6: Touchable Component

Create a touchable component (eg. A button is a touchable component) in each movie component so that when the user taps into the button it will open the corresponding URL of the movie in a web browser. The following is the URL opening up to the corresponding movie page in IMDb when the button is tapped.

Common Errors

It's highly likely that you will face multitude of errors when working with React Native. Most of the errors have been documented and some of the errors can be traced back to your wrong codes. Make sure you make your app bug free and your app work smoothly.

Local JSON file

You can download the JSON file required for this project below.

JSON File

basic-react-native-app's People

Contributors

baodongle avatar dependabot[bot] avatar

Watchers

 avatar

basic-react-native-app's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.