diff --git a/releases/next/docs/getting-started-linux.html b/releases/next/docs/getting-started-linux.html index 024b76fbca5..bc10a471b90 100644 --- a/releases/next/docs/getting-started-linux.html +++ b/releases/next/docs/getting-started-linux.html @@ -1,14 +1,14 @@ -Getting Started on Linux – React Native | A framework for building native apps using React

Getting Started on Linux #

Edit on GitHub

This guide is essentially a beginner-friendly version of the Getting Started page for React Native on Linux.

Prerequisites #

For the purposes of this guide, we assume that you're working on Ubuntu Linux 14.04 LTS.

Before following this guide, you should have installed the Android SDK and run a successful Java-based "Hello World" app for Android.

See Android Setup for details.

Installing NodeJS #

The first thing you need to do is to install NodeJS, a popular Javascript implementation.

Fire up the Terminal and paste the following commands to install NodeJS from the NodeSource repository:

sudo apt-get install -y build-essential +Getting Started on Linux – React Native | A framework for building native apps using React

Getting Started on Linux #

Edit on GitHub

This guide is essentially a beginner-friendly version of the Getting Started page for React Native on Linux.

Prerequisites #

For the purposes of this guide, we assume that you're working on Ubuntu Linux 14.04 LTS.

Before following this guide, you should have installed the Android SDK and run a successful Java-based "Hello World" app for Android.

See Android Setup for details.

Installing NodeJS #

The first thing you need to do is to install NodeJS, a popular Javascript implementation.

Fire up the Terminal and type the following commands to install NodeJS from the NodeSource repository:

sudo apt-get install -y build-essential curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs -sudo ln -s /usr/bin/nodejs /usr/bin/node

NOTE: The above instructions are for Ubuntu. If you're on a different distro, please follow the instructions on the NodeJS website.

Installing Watchman #

watchman is a tool by Facebook for watching changes in the filesystem. You need to install it for better performance and avoid a node file-watching bug.

Paste the following into your terminal to compile watchman from source and install it:

sudo apt-get install -y automake python-dev +sudo ln -s /usr/bin/nodejs /usr/bin/node

NOTE: The above instructions are for Ubuntu. If you're on a different distro, please follow the instructions on the NodeJS website.

Installing Watchman #

watchman is a tool by Facebook for watching changes in the filesystem. You need to install it for better performance and avoid a node file-watching bug.

Type the following into your terminal to compile watchman from source and install it:

sudo apt-get install -y automake python-dev git clone https://github.com/facebook/watchman.git cd watchman git checkout v4.5.0 # the latest stable release ./autogen.sh ./configure make -sudo make install

NOTE: The above apt-get install line is for Ubuntu/Debian only. You might need to install required dependencies differently on other distributions.

Installing Flow #

Flow is a static type checker for JavaScript. To install it, paste the following in the terminal:

sudo npm install -g flow-bin

Setting up an Android Device #

Let's set up an Android device to run our starter project.

First thing is to plug in your device and check the manufacturer code by using lsusb, which should output something like this:

$ lsusb +sudo make install

NOTE: The above apt-get install line is for Ubuntu/Debian only. You might need to install required dependencies differently on other distributions.

Installing Flow #

Flow is a static type checker for JavaScript. To install it, type the following in the terminal:

npm install -g flow-bin

Setting up an Android Device #

Let's set up an Android device to run our starter project.

First thing is to plug in your device and check the manufacturer code by using lsusb, which should output something like this:

$ lsusb Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 22b8:2e76 Motorola PCS diff --git a/releases/next/docs/tabbarios-item.html b/releases/next/docs/tabbarios-item.html index 3fe5b742912..decbcec3839 100644 --- a/releases/next/docs/tabbarios-item.html +++ b/releases/next/docs/tabbarios-item.html @@ -1,5 +1,6 @@ TabBarIOS.Item – React Native | A framework for building native apps using React

TabBarIOS.Item #

Edit on GitHub

Props #

badge string, number #

Little red bubble that sits at the top right of the icon.

icon Image.propTypes.source #

A custom icon for the tab. It is ignored when a system icon is defined.

onPress function #

Callback when this tab is being selected, you should change the state of your -component to set selected={true}.

selected bool #

It specifies whether the children are visible or not. If you see a +component to set selected={true}.

renderAsOriginal bool #

If set to true it renders the image as original, +it defaults to being displayed as a template

selected bool #

It specifies whether the children are visible or not. If you see a blank content, you probably forgot to add a selected one.

selectedIcon Image.propTypes.source #

A custom icon when the tab is selected. It is ignored when a system icon is defined. If left empty, the icon will be tinted in blue.

style View#style #

React style object.

systemIcon enum('bookmarks', 'contacts', 'downloads', 'favorites', 'featured', 'history', 'more', 'most-recent', 'most-viewed', 'recents', 'search', 'top-rated') #

Items comes with a few predefined system icons. Note that if you are using them, the title and selectedIcon will be overridden with the diff --git a/releases/next/docs/tabbarios.html b/releases/next/docs/tabbarios.html index d19322aa601..e6ca86bee68 100644 --- a/releases/next/docs/tabbarios.html +++ b/releases/next/docs/tabbarios.html @@ -1,4 +1,4 @@ -TabBarIOS – React Native | A framework for building native apps using React

TabBarIOS #

Edit on GitHub

Props #

barTintColor color #

Background color of the tab bar

tintColor color #

Color of the currently selected tab icon

translucent bool #

A Boolean value that indicates whether the tab bar is translucent

Examples #

Edit on GitHub
'use strict'; +TabBarIOS – React Native | A framework for building native apps using React

TabBarIOS #

Edit on GitHub

Props #

barTintColor color #

Background color of the tab bar

tintColor color #

Color of the currently selected tab icon

translucent bool #

A Boolean value that indicates whether the tab bar is translucent

unselectedTintColor color #

Color of text on unselected tabs

Examples #

Edit on GitHub
'use strict'; var React = require('react'); var ReactNative = require('react-native'); @@ -39,6 +39,7 @@ render: function() { return ( <TabBarIOS + unselectedTintColor="yellow" tintColor="white" barTintColor="darkslateblue"> <TabBarIOS.Item @@ -66,6 +67,7 @@ </TabBarIOS.Item> <TabBarIOS.Item icon={require('./flux.png')} + renderAsOriginal title="More" selected={this.state.selectedTab === 'greenTab'} onPress={() => {