Merge pull request #4806 from morenoh149/wrapJS
[docs] Wrap javascript at 80 columns
This commit is contained in:
commit
f6e6cae2ed
|
@ -129,11 +129,12 @@ To make it simpler to access your new functionality from JavaScript, it is commo
|
||||||
```js
|
```js
|
||||||
'use strict';
|
'use strict';
|
||||||
/**
|
/**
|
||||||
* This exposes the native ToastAndroid module as a JS module. This has a function 'show'
|
* This exposes the native ToastAndroid module as a JS module. This has a
|
||||||
* which takes the following parameters:
|
* function 'show' which takes the following parameters:
|
||||||
*
|
*
|
||||||
* 1. String message: A string with the text to toast
|
* 1. String message: A string with the text to toast
|
||||||
* 2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG
|
* 2. int duration: The duration of the toast. May be ToastAndroid.SHORT or
|
||||||
|
* ToastAndroid.LONG
|
||||||
*/
|
*/
|
||||||
var { NativeModules } = require('react-native');
|
var { NativeModules } = require('react-native');
|
||||||
module.exports = NativeModules.ToastAndroid;
|
module.exports = NativeModules.ToastAndroid;
|
||||||
|
|
Loading…
Reference in New Issue