From ca263ac8a1b3f564d34837cd7d59b5ca3870b092 Mon Sep 17 00:00:00 2001 From: Harry Moreno Date: Tue, 15 Dec 2015 17:45:07 -0500 Subject: [PATCH] wrap javascript at 80 columns --- docs/NativeModulesAndroid.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/NativeModulesAndroid.md b/docs/NativeModulesAndroid.md index 56a8c2f83..13d840cd9 100644 --- a/docs/NativeModulesAndroid.md +++ b/docs/NativeModulesAndroid.md @@ -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; @@ -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); ```