[ReactNative] Remove react-native/package.json

This commit is contained in:
Christopher Chedeau 2015-03-22 20:32:49 -07:00
parent 6b0711b719
commit 87f42ab450
8 changed files with 20 additions and 47 deletions

View File

@ -6,7 +6,7 @@
*/
'use strict';
var React = require('react-native/addons');
var React = require('react-native');
var {
AppRegistry,
NavigatorIOS,

View File

@ -3,7 +3,7 @@
*/
'use strict';
var React = require('react-native/addons');
var React = require('react-native');
var ViewExample = require('./ViewExample');
var {
PixelRatio,

View File

@ -5,7 +5,7 @@
*/
'use strict';
var React = require('react-native/addons');
var React = require('react-native');
var UIExplorerList = require('./UIExplorerList');
var {

View File

@ -3,7 +3,7 @@
*/
'use strict';
var React = require('react-native/addons');
var React = require('react-native');
var {
ListView,
PixelRatio,

View File

@ -1,36 +0,0 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @flow
*/
'use strict';
var LinkedStateMixin = require('LinkedStateMixin');
var ReactComponentWithPureRenderMixin = require('ReactComponentWithPureRenderMixin');
var ReactNative = require('react-native');
var ReactUpdates = require('ReactUpdates');
var cloneWithProps = require('cloneWithProps');
var update = require('update');
var addons = {
LinkedStateMixin: LinkedStateMixin,
PureRenderMixin: ReactComponentWithPureRenderMixin,
batchedUpdates: ReactUpdates.batchedUpdates,
cloneWithProps: cloneWithProps,
update: update,
Perf: undefined,
TestUtils: undefined,
};
if (__DEV__) {
addons.Perf = require('ReactDefaultPerf');
addons.TestUtils = require('ReactTestUtils');
}
var ReactNativeWithAddons = {
...ReactNative,
addons: addons,
};
module.exports = ReactNativeWithAddons;

View File

@ -1,5 +0,0 @@
{
"name": "react-native",
"main": "react-native.js",
"directories": {".": ""}
}

View File

@ -45,7 +45,20 @@ var ReactNative = {
TimerMixin: require('TimerMixin'),
VibrationIOS: require('VibrationIOS'),
invariant: require('invariant'),
addons: {
batchedUpdates: require('ReactUpdates').batchedUpdates,
LinkedStateMixin: require('LinkedStateMixin'),
Perf: undefined,
PureRenderMixin: require('ReactComponentWithPureRenderMixin'),
TestUtils: undefined,
cloneWithProps: require('cloneWithProps'),
update: require('update'),
},
};
if (__DEV__) {
ReactNative.addons.Perf = require('ReactDefaultPerf');
ReactNative.addons.TestUtils = require('ReactTestUtils');
}
module.exports = ReactNative;

View File

@ -1,5 +1,5 @@
{
"name": "react-native-github",
"name": "react-native",
"version": "0.1.0",
"description": "Build native apps with React!",
"repository": {
@ -20,6 +20,7 @@
"source-map"
]
},
"main": "Libraries/react-native/react-native.js",
"scripts": {
"test": "jest",
"lint": "node linter.js Examples/",