[ReactNative] Remove react-native/package.json
This commit is contained in:
parent
6b0711b719
commit
87f42ab450
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
var React = require('react-native/addons');
|
||||
var React = require('react-native');
|
||||
var {
|
||||
AppRegistry,
|
||||
NavigatorIOS,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
var React = require('react-native/addons');
|
||||
var React = require('react-native');
|
||||
var ViewExample = require('./ViewExample');
|
||||
var {
|
||||
PixelRatio,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
var React = require('react-native/addons');
|
||||
var React = require('react-native');
|
||||
var UIExplorerList = require('./UIExplorerList');
|
||||
|
||||
var {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
var React = require('react-native/addons');
|
||||
var React = require('react-native');
|
||||
var {
|
||||
ListView,
|
||||
PixelRatio,
|
||||
|
|
|
@ -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;
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"name": "react-native",
|
||||
"main": "react-native.js",
|
||||
"directories": {".": ""}
|
||||
}
|
|
@ -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;
|
||||
|
|
|
@ -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/",
|
||||
|
|
Loading…
Reference in New Issue