mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +00:00
wrap javascript at 80 columns
This commit is contained in:
parent
f43e864ff6
commit
ca263ac8a1
@ -127,11 +127,12 @@ To make it simpler to access your new functionality from JavaScript, it is commo
|
||||
```js
|
||||
'use strict';
|
||||
/**
|
||||
* This exposes the native ToastAndroid module as a JS module. This has a function 'show'
|
||||
* which takes the following parameters:
|
||||
* This exposes the native ToastAndroid module as a JS module. This has a
|
||||
* function 'show' which takes the following parameters:
|
||||
*
|
||||
* 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');
|
||||
module.exports = NativeModules.ToastAndroid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user