List Movies TMDb
Requirements :
-
Follow these instructions to build native code in your project : https://facebook.github.io/react-native/docs/getting-started
-
clone Repo :
git clone https://github.com/hadar-ayoub/tmdb-movies.git && cd tmdb-mobies
-
Add
credentials.js
to project root :
export default Config = {
BASE_URL: 'https://api.themoviedb.org/3',
IMAGE_URL: 'http://image.tmdb.org/t/p/w185',
API_KEY: '${api_key}' // you need to specify you're TMDB Api key.
}
-
install project dependencies :
yarn
ornpm install
-
Run App on an android emulator:
react-native run-andoid
oryarn run android
ornpm run android
-
Run App on an iphone simulator: (installing pods on ios is required :
cd ios && pod install
) or excute command line :react-native run-ios
oryarn run ios
ornpm run ios
Screenshots :