GithubHelp home page GithubHelp logo

news-feed-app's Introduction

News Feed app - React Native

Coding Fellowship React Native challenge. The app needed to:

Begin with a list screen, displaying a list of article headlines. The articles will be sourced from a local JSON file.

Allow an article item to be tapped in the list, navigating to a detail view. This will display the following content:

  • Article image (if available)
  • Article headline
  • Article content

Render the headerbar using a background colour of #d35400, with white text.

I had also completed the extra tasks, which were:

  • The detail screen should include a button which, when tapped, will open an in-app-browser screen at the specified article's URL. Use the Expo SDK WebBrowser module to achieve this.
  • Change the Back button to read 'Back' on the detail page instead of 'BBC News'.
  • Convert the app to store the articles inside a Redux store.
  • Read the articles from an API instead of a local JSON file.
  • Show a loading spinner while the articles are loading.
  • Display the article publication date beneath the headline in both the list and detail view. The date should take the form X {mins|hours|days} ago.
  • Show an accessory 'chevron' to the right of the content inside each list item, for iOS devices only.

I also added pull-to-refresh functionality.

End product

News Feed GIF

Getting Started

The app can be installed by cloning the Git repository and running 'npm install' in the project directory. Once all packages are installed, you can run 'npm start' to run the app in localhost.

To simulate the app in a mobile device, type i in the CLI and this run the app in an emulated iOS device.

Prerequisites

To run the simulator, you must have Xcode, Simulator and Watchman installed.

Built With

React Native Redux ES6 immutable methods syntax Expo

news-feed-app's People

Watchers

James Cloos avatar Kye Buffery avatar

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.