Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap javascript at 80 columns #4806

Merged
merged 1 commit into from
Dec 16, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/NativeModulesAndroid.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -140,7 +141,7 @@ module.exports = NativeModules.ToastAndroid;
Now, from your other JavaScript file you can call the method like this:

```js
var ToastAndroid = require('./ToastAndroid');
var ToastAndroid = require('./ToastAndroid');

ToastAndroid.show('Awesome', ToastAndroid.SHORT);
```
Expand Down