GithubHelp home page GithubHelp logo

sk-react-native's Introduction

sk-react-native

An experimentation to see how cool is React Native:

  • Bring continuous deployment to iOS ๐Ÿ˜
  • Build native app without any Objective-C / swift knowledge
  • Enjoy a super-fast dev workflow

Resources

Notes

Project setup

It took us 2h30 to have the complete target setup:

  1. Create the React Native app
  2. Create and configure access rights of the Amazon S3 buckets (while being complete Amazon noobs)
  3. Setup CircleCI for continuous deployment to S3
  4. Make the app download the javascript bundle from S3

Basic React Native

It literally takes 2 minutes to create and run a React Native app, including Live Reload and Chrome Dev Tools debugging. The project set experience could not be better.

Continuous Deployment

As React Native can download the javascript bundle from anywhere, not just locally, continuous deployment is as simple uploading a file and make it available on internet.

Amazon S3 setup

You need to create a bucket, a specific continuous deployment user and set the proper permission policy on this bucket. See the sample policy ./s3-bucket-policy.json.

Circle CI

You can define all your continuous deployment setup in a circle.yml file, defining the build, test and deploy steps. We copied and adjusted it from the london-react app

The only two things you need to from the CircleCI website is :

  • Add the project (duh)
  • Copy the Amazon S3 newly created user credentials in the AWS Permissions project settings view.
  • git push origin master
  • Sip some margarita

Mother effing splash and icons images

Who would have imagined how painful this could be?

Headache-less way of doing it:

  1. Create a 1000x1000px icon ; logo should be ~750px
  2. Create a 2048x2048px splash screen ; logo should be ~1000px, centered
  3. Install this app
  4. Pay ยฃ1.49 for the splash screen export, best ยฃ1.49 spent ever
  5. Follow the instructions, this is easy

Troubleshooting

Project local setup

fail to build 'RCTRootView.h' file not found, should happen by default (meh).

  1. You didn't forget to run npm install, did you?
  2. Click on the root project item
  3. Build settings
  4. Type Search path in the search box
  5. Switch Always Search User Paths to Yes
  6. Restart XCode
  7. Profit

sk-react-native's People

Contributors

arnaudrinquin avatar vjo avatar

Watchers

 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.