diff --git a/releases/next/docs/native-components-android.html b/releases/next/docs/native-components-android.html index ce291880e4c..169b35482aa 100644 --- a/releases/next/docs/native-components-android.html +++ b/releases/next/docs/native-components-android.html @@ -32,7 +32,7 @@ public class ReactImageManager extends }

5. Implement the JavaScript module #

The very final step is to create the JavaScript module that defines the interface layer between Java and JavaScript for the users of your new view. Much of the effort is handled by internal React code in Java and JavaScript and all that is left for you is to describe the propTypes.

// ImageView.js import { PropTypes } from 'react'; -import { requireNativeComponent } from 'react-native'; +import { requireNativeComponent, View } from 'react-native'; var iface = { name: 'ImageView', @@ -40,7 +40,8 @@ import { requireNativeComponent : PropTypes.string, borderRadius: PropTypes.number, resizeMode: PropTypes.oneOf(['cover', 'contain', 'stretch']), - }, + ...View.propTypes // include the default view properties + }, }; module.exports = requireNativeComponent('RCTImageView', iface);

requireNativeComponent commonly takes two parameters, the first is the name of the native view and the second is an object that describes the component interface. The component interface should declare a friendly name for use in debug messages and must declare the propTypes reflected by the Native View. The propTypes are used for checking the validity of a user's use of the native view. Note that if you need your JavaScript component to do more than just specify a name and propTypes, like do custom event handling, you can wrap the native component in a normal react component. In that case, you want to pass in the wrapper component instead of iface to requireNativeComponent. This is illustrated in the MyCustomView example below.

Events #

So now we know how to expose native view components that we can control easily from JS, but how do we deal with events from the user, like pinch-zooms or panning? When a native event occurs the native code should issue an event to the JavaScript representation of the View, and the two views are linked with the value returned from the getId() method.

class MyCustomView extends View { diff --git a/releases/next/showcase.html b/releases/next/showcase.html index 6cf4a829aa4..63d5d3d8c17 100644 --- a/releases/next/showcase.html +++ b/releases/next/showcase.html @@ -1,4 +1,4 @@ -Showcase – React Native | A framework for building native apps using React

Apps using React Native

The following is a list of some of the public apps using React Native and are published on the Apple App Store or the Google Play Store. Not all are implemented 100% in React Native -- many are hybrid native/React Native. Can you tell which parts are which? :)

Want to add your app? Found an app that no longer works or no longer uses React Native? Please submit a pull request on GitHub to update this page!

Featured Apps

These are some of the most well-crafted React Native apps that we have come across.
Be sure to check them out to get a feel for what React Native is capable of!

All Apps

Not all apps can be featured, otherwise we would have to create some other category like "super featured" and that's just silly. But that doesn't mean you shouldn't check these apps out!

Azendoo

Azendoo

iOSAndroid

By Azendoo

Blog post

Blueprint

Blueprint

iOSAndroid

By Tom Hayden

breathe Meditation Timer

breathe Meditation Timer

iOSAndroid

By idearockers UG

Bulut Filo Yönetimi

Bulut Filo Yönetimi

iOSAndroid

By Macellan.net

CANDDi

CANDDi

iOSAndroid

By CANDDi LTD.

Chillin'

Chillin'

iOSAndroid

By Chillin LLC

DockMan

DockMan

iOSAndroid

By Genki Takiuchi (s21g Inc.)

Blog post

Eat or Not

Eat or Not

iOSAndroid

By Sharath Prabhal

Emoji Poetry

Emoji Poetry

iOSAndroid

By forforce.com

Blog post

Fixt

Fixt

iOSAndroid

By Fixt

HackerWeb

HackerWeb

iOSAndroid

By Lim Chee Aun

Blog post

Hover

Hover

iOSAndroid

By KevinEJohn

Kakapo

Kakapo

iOSAndroid

By Daniel Levitt

MaxReward - Android

MaxReward - Android

iOSAndroid

By Neil Ma

Mobabuild

Mobabuild

iOSAndroid

By Sercan Demircan ( @sercanov )

ShareHows

ShareHows

iOSAndroid

By Dobbit Co., Ltd.

TeamWarden

TeamWarden

iOSAndroid

By nittygritty.net

uSwitch - Energy switching app

uSwitch - Energy switching app

iOSAndroid

By uSwitch Ltd

Video

Veckopengen – för barn och föräldrar

Veckopengen – för barn och föräldrar

iOSAndroid

By Barnpengar AB

Video

WEARVR

WEARVR

iOSAndroid

By WEARVR LLC

YAMU

YAMU

iOSAndroid

By YAMU (Private) Limited (@yamulk)

天才段子手

天才段子手

iOSAndroid

By Ran Zhao&Ji Zhao

うたよみん

うたよみん

iOSAndroid

By Takayuki IMAI

Spatula

Spatula

iOSAndroid

By Kushal Dave

© 2016 Facebook Inc.

Apps using React Native

The following is a list of some of the public apps using React Native and are published on the Apple App Store or the Google Play Store. Not all are implemented 100% in React Native -- many are hybrid native/React Native. Can you tell which parts are which? :)

Want to add your app? Found an app that no longer works or no longer uses React Native? Please submit a pull request on GitHub to update this page!

Featured Apps

These are some of the most well-crafted React Native apps that we have come across.
Be sure to check them out to get a feel for what React Native is capable of!

All Apps

Not all apps can be featured, otherwise we would have to create some other category like "super featured" and that's just silly. But that doesn't mean you shouldn't check these apps out!

Azendoo

Azendoo

iOSAndroid

By Azendoo

Blog post

Blueprint

Blueprint

iOSAndroid

By Tom Hayden

breathe Meditation Timer

breathe Meditation Timer

iOSAndroid

By idearockers UG

Bulut Filo Yönetimi

Bulut Filo Yönetimi

iOSAndroid

By Macellan.net

CANDDi

CANDDi

iOSAndroid

By CANDDi LTD.

Chillin'

Chillin'

iOSAndroid

By Chillin LLC

DockMan

DockMan

iOSAndroid

By Genki Takiuchi (s21g Inc.)

Blog post

Eat or Not

Eat or Not

iOSAndroid

By Sharath Prabhal

Emoji Poetry

Emoji Poetry

iOSAndroid

By forforce.com

Blog post

Fixt

Fixt

iOSAndroid

By Fixt

HackerWeb

HackerWeb

iOSAndroid

By Lim Chee Aun

Blog post

Hover

Hover

iOSAndroid

By KevinEJohn

Kakapo

Kakapo

iOSAndroid

By Daniel Levitt

MaxReward - Android

MaxReward - Android

iOSAndroid

By Neil Ma

Mobabuild

Mobabuild

iOSAndroid

By Sercan Demircan ( @sercanov )

ShareHows

ShareHows

iOSAndroid

By Dobbit Co., Ltd.

TeamWarden

TeamWarden

iOSAndroid

By nittygritty.net

uSwitch - Energy switching app

uSwitch - Energy switching app

iOSAndroid

By uSwitch Ltd

Video

Veckopengen – för barn och föräldrar

Veckopengen – för barn och föräldrar

iOSAndroid

By Barnpengar AB

Video

WEARVR

WEARVR

iOSAndroid

By WEARVR LLC

YAMU

YAMU

iOSAndroid

By YAMU (Private) Limited (@yamulk)

天才段子手

天才段子手

iOSAndroid

By Ran Zhao&Ji Zhao

うたよみん

うたよみん

iOSAndroid

By Takayuki IMAI

Spatula

Spatula

iOSAndroid

By Kushal Dave

© 2016 Facebook Inc.