- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestExample.js
More file actions
Latest commit
14 lines (14 loc) · 533 Bytes
/
Copy pathTestExample.js
File metadata and controls
14 lines (14 loc) · 533 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ToastExample.js
/**
* This exposes the native ToastExample 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 ToastExample.SHORT or
* ToastExample.LONG
*/
import{NativeModules}from"react-native";
// 下一句中的ToastExample即对应上文
// public String getName()中返回的字符串
exportdefaultNativeModules.TestExample;
// export default global.nativeTest;