Added react-native new-library command

This commit is contained in:
Joe Stanton
2015-03-28 15:50:31 +00:00
parent b2d1d6f3e9
commit 396439bf86
11 changed files with 427 additions and 39 deletions

View 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;