mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 23:24:06 +08:00
Added react-native new-library command
This commit is contained in:
20
Libraries/Sample/Sample.ios.js
Normal file
20
Libraries/Sample/Sample.ios.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @providesModule Sample
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var NativeSample = require('NativeModules').Sample;
|
||||
var invariant = require('invariant');
|
||||
|
||||
/**
|
||||
* High-level docs for the Sample iOS API can be written here.
|
||||
*/
|
||||
|
||||
var Sample = {
|
||||
test: function() {
|
||||
NativeSample.test();
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = Sample;
|
||||
Reference in New Issue
Block a user