mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
Add link to more info for ReadableMap and ReadableArray
This commit is contained in:
parent
f43e864ff6
commit
055d4e29ee
@ -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);
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user