Git Product home page Git Product logo

onboardingviewwithreactnative's Introduction

Onboarding Page Viewer with React Native

yarn

yarn add react-navigation react-native-gesture-handler react-native-reanimated react-native-screens@^1.0.0-alpha.23 @react-native-community/async-storage lodash

npm

npm i -S react-navigation react-native-gesture-handler react-native-reanimated react-native-screens@^1.0.0-alpha.23 @react-native-community/async-storage lodash

Pods

cd ios && pod install && cd ..

  • Create src/ and move App.js to it

  • Setup eslint and eslint plugins (copy in from RunThrough project)

  • eslint plugins we use:

    yarn

    yarn add -D eslint-config-airbnb eslint-import-resolver-react-native eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-lodash eslint-plugin-react eslint-plugin-wyze reactotron-react-native

    npm

    npm i -D eslint-config-airbnb eslint-import-resolver-react-native eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-lodash eslint-plugin-react eslint-plugin-wyze reactotron-react-native

  • Add React Navigation (and associated libraries)

  • Setup initial routing

    • Exported constants object for screen keys
    • Switch Navigator (Usually also Stack Navigator - now a separate library)
  • Setup the page view and page view indicator (maybe copy paste and go through this code)

  • Hooks! (we use a lot of them)

  • Navigate to home screen on "Let's Go!"

  • Simple persistence to know whether the user has been through onboarding

    • Context API, esp. with hooks
    • We typically use Realm as our persistence option instead of AsyncStorage, has been pretty great so far.
  • Navigation setup to have a dynamic initial route

    • Downside of time-to-interaction (TTI) goes down for the read time
  • Setup Reactotron to have a clear hasOnboarded flag helper for development

0.61.X

  • Fast Refresh (Great, just want stateful refresh)
  • Auto-linking as of 0.60

Notes: npm i on vpn, npm run android off vpn, Either:

  • reset reactotron, and run ios and android after setup
  • OR it's probably the device select in reactotron

onboardingviewwithreactnative's People

Watchers

Brett Lindsay 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.