View on GitHub

react-native-ubuntu

An unofficial fork of react-native-ubuntu which can work with official react-native-cli without rebuild

React Native Ubuntu

This is an unofficial fork of https://github.com/CanonicalLtd/react-native

It changed the core structure without rebuild react-native tools.

Features

Problems

Welcome to discuss with me about those problems, which is a great help for me.

Install

You should install the react-native-cli first, and create a project.

	react-native init RNUbuntu

Using npm to install it:

	npm install http://github.com/sunxfancy/react-native-ubuntu --save

And init it first:

	react-native ubuntu

It should create a ubuntu fold in the root dir of the project.

Fix the react-native server

You should change the react-native default configure to let react-native dev-server found ubuntu platform:

// ./node_modules/react-native/packager/defaults.js

...

exports.platforms = ['ios', 'android', 'windows', 'web', 'ubuntu'];  // add ubuntu platform

...

exports.providesModuleNodeModules = [
  'react-native',
  'react-native-windows',
  'react-native-ubuntu'  // add ubuntu platform
];

When this project become stable, I will ask them to add this platform.

License

BSD License