Skip to content

calebnance/expo-netflix

Repository files navigation

Netflix: UI Clone with React Native / Expo

web demo: Expo Netflix

follow @calebnance

netflix screens

Table of Contents

Install & Build

First, make sure you have Expo CLI installed: npm install -g expo-cli

Install:

yarn

Run Project Locally:

yarn dev

Features

  • Expo SDK 50
  • iOS, Android and PWA (Progressive Web App)
  • React Navigation v6
  • PropTypes

API Components/Packages Used

  • React Native
    • Animated
    • Alert and Switch
    • Image and ImageBackground
    • Keyboard and TextInput
    • TouchableOpacity and TouchableWithoutFeedback
    • Dimensions, Platform and StatusBar
    • ScrollView and FlatList
    • StyleSheet, Text, and View
  • Expo
    • expo-asset
    • expo-font
    • expo-linear-gradient
    • AppLoading
    • ScreenOrientation
  • 3rd Party
    • react-native-appearance
    • react-native-svg
    • react-native-webview

Linting

  • run: yarn lint for a list of linting warnings/error in cli
  • prettier and airbnb config
  • make sure you have prettier package installed:
  • then make sure to enable these options (packages → prettier):
    • eslint integration
    • stylelint integration
    • automatic format on save (toggle format on save)
  • be aware of the .prettierignore file

Expo Web

Currently Expo Web support is not production ready, but if you want to see how this project looks on the web as a PWA (Progressive Web App)... using react-native-web and react-dom.

PWA: Expo Netflix looks best on a mobile device, but not bad on desktop!

Dev with Expo Web

  • Remove node_modules if they exist: rm -rf nodes_modules
  • Install/Re-install: yarn
  • Start development: yarn web or expo start --web
  • Build PWA: yarn web-build or expo build:web

a couple manual changes within index.html i found needed to be made so far:

  • to make splash screen work: "mobile-web-app-capable" => "apple-mobile-web-app-capable"
  • status bar transparent: apple-mobile-web-app-status-bar-style="default" => "black-translucent"
  • no white background: add background color within body{background-color: #121212; ...}
  • check output meta: double image meta tags
  • check output js: double/triple js packages

Release Notes

version 0.0.2 (current)

version 0.0.1

  • iOS and Android
  • Tab Navigation
    • Home
      • simple banner (bandersnatch)
      • add to my list
      • simple wireframe with FlatList (horizontal scroll)
    • Search
      • simple animation onFocus and onBlur of search input
      • autofocus on first render
    • My Downloads
    • More
      • simple account profiles layout
  • Chrome Cast modal screen

screen grab of netflix clone

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •