Add link to more info for ReadableMap and ReadableArray

This commit is contained in:
Harry Moreno 2015-12-15 17:34:26 -05:00
parent f43e864ff6
commit 055d4e29ee

View File

@ -86,6 +86,8 @@ ReadableMap -> Object
ReadableArray -> Array ReadableArray -> Array
``` ```
Read more about [ReadableMap](https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableMap.java) and [ReadableArray](https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableArray.java)
### Register the Module ### Register the Module
The last step within Java is to register the Module; this happens in the `createNativeModules` of your apps package. If a module is not registered it will not be available from JavaScript. The last step within Java is to register the Module; this happens in the `createNativeModules` of your apps package. If a module is not registered it will not be available from JavaScript.
@ -140,7 +142,7 @@ module.exports = NativeModules.ToastAndroid;
Now, from your other JavaScript file you can call the method like this: Now, from your other JavaScript file you can call the method like this:
```js ```js
var ToastAndroid = require('./ToastAndroid'); var ToastAndroid = require('./ToastAndroid');
ToastAndroid.show('Awesome', ToastAndroid.SHORT); ToastAndroid.show('Awesome', ToastAndroid.SHORT);
``` ```