Coder Social home page Coder Social logo

steroids / boilerplate-react-native Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.35 MB

Boilerplate for a React Native application based on SteroidsJS

JavaScript 5.12% TypeScript 41.00% Java 30.93% Ruby 9.84% Objective-C 9.88% Objective-C++ 3.22%
react-native

boilerplate-react-native's Introduction

React Native Boilerplate

Развертывание нового приложения на React Native

1. Скопировать в отдельную папку всё содержимое, кроме папки .git

3. Заменить applicationId в файле android/app/build.gradle

4. Заменить Bundle identifier открыв проект в XCode через файл ios/mobile.workspace

5. Добавить проект в новый репозиторий

6. Удалить раздел "Развертывание нового приложения на React Native" из этого README.md

Install

1. Install dependencies

yarn

yarn pod (только для mac os)

2. Configure local workplace via .env

Start

Android

yarn android

iOS через XCode выбрав эмулятор устройства на котором запускать

Clear cache

Bundler

yarn clear

Android

yarn clean

Build

Setup build for Android

  1. Generate keystore
keytool -genkeypair -v -storetype PKCS12 -keystore {project}-upload-key.keystore -alias {project}-key-alias -keyalg RSA -keysize 2048 -validity 10000
  1. Place the {project}-upload-key.keystore file under the android/app

  2. Edit the file android/gradle.properties

MYAPP_UPLOAD_STORE_FILE={project}-upload-key.keystore
MYAPP_UPLOAD_KEY_ALIAS={project}-key-alias
MYAPP_UPLOAD_STORE_PASSWORD=*****
MYAPP_UPLOAD_KEY_PASSWORD=*****
  1. Edit the file android/app/build.gradle
signingConfigs {
    release {
        if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
            storeFile file(MYAPP_UPLOAD_STORE_FILE)
            storePassword MYAPP_UPLOAD_STORE_PASSWORD
            keyAlias MYAPP_UPLOAD_KEY_ALIAS
            keyPassword MYAPP_UPLOAD_KEY_PASSWORD
        }
    }
}
buildTypes {
    release {
        ...
        signingConfig signingConfigs.release
    }
}

APK

yarn apk

AAB

yarn aab

iOS

  1. Open XCode ios/mobile.workspace
  2. Make sure to set the device to "Any iOS Device (arm64)"
  3. Product -> Archive
  4. Click button "next"
  5. Click "Distribution"

boilerplate-react-native's People

Contributors

sergeikaluckij avatar vkoktashev avatar

Watchers

Serg avatar  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.