Skip to content

farwayer/docker-react-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native builder (android) based on Arch Linux. Android platforms and sdk build tools for most popular react-native modules included.

There are two versions of builder: -min and full which contains more android platforms and sdk build tools.

Building

If you are using minimal image check 'Android support library' section first.

git clone https://.../myproject.git
cd myproject
yarn
cd android
./gradlew assembleRelease

Both images

Android SDK

  • latest

Android platform tools

  • latest

Minimal image (-min)

Contains only required packages for building basic projects with no third-party modules. In most cases you will need to install extra platforms and sdk build-tools with pacman or use this image as basic for your own image.

Packages

All package versions are recent for building date.

  • nodejs
  • yarn
  • npm
  • watchman
  • openjdk8
  • git

Platforms

  • 26

SDK build tools

  • 26.0.3

You can install extra sdk build tools with pacman:

pacman --noconfirm -Sy android-sdk-build-tools-25.0.1

(x.0.0 is named android-sdk-build-tools-x)

Android support library

Support library is available in Google maven repository now. Simply add this repository to android/build.gradle:

allprojects {
    repositories {
        ...
        maven { url 'https://maven.google.com' }
        ...
    }
}

...or install with pacman:

pacman --noconfirm -Sy android-support-repository

Google repository

Install with pacman:

pacman --noconfirm -Sy android-google-repository

Full image

Contains much more android platforms, sdk build tools and compilers for npm native modules.

Packages

All package versions are recent for building date.

  • nodejs
  • yarn
  • npm
  • watchman
  • openjdk8
  • git
  • fastlane
  • ruby (for fastlane)
  • python2 (for building some npm deps)
  • make (for building some npm deps)
  • gcc (for building some npm deps)

Platforms

  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

SDK build tools

  • 23.0.1
  • 23.0.3
  • 25.0.0
  • 25.0.2
  • 25.0.3
  • 26.0.1
  • 26.0.2
  • 26.0.3
  • 27.0.3
  • 28.0.2

You can install extra sdk build tools with pacman:

pacman --noconfirm -Sy android-sdk-build-tools-25.0.1

(x.0.0 is named android-sdk-build-tools-x)

Support library

  • latest

Google repository

  • latest

Fastlane

You should use fastlane. It's really cool!

Installing extra packages

Arch Linux packages can be found here

pacman --noconfirm -Sy android-udev

Some extra packages for mobile development (android-ndk etc.) are available here

pacman --noconfirm -Sy react-native-cli android-ndk