Remove use of Object.assign module

Summary:I'm [getting rid of it from React](https://github.com/facebook/react/pull/6376) and so I'd like to get this in before we accidentally break RN. There are a bunch of other uses of Object.assign directly so this should be perfectly safe.
Closes https://github.com/facebook/react-native/pull/6766

Differential Revision: D3128135

Pulled By: vjeux

fb-gh-sync-id: 675913ba457abcd8c194facb9ff58255c9dceda5
fbshipit-source-id: 675913ba457abcd8c194facb9ff58255c9dceda5
This commit is contained in:
Paul O’Shannessy 2016-04-01 13:49:51 -07:00 committed by Facebook Github Bot 5
parent 8a3e1e92f3
commit cb5d37713f

View File

@ -14,14 +14,13 @@
var ReactNativeTagHandles = require('ReactNativeTagHandles');
var UIManager = require('UIManager');
var assign = require('Object.assign');
var invariant = require('fbjs/lib/invariant');
var ReactNativeTextComponent = function(props) {
// This constructor and its argument is currently used by mocks.
};
assign(ReactNativeTextComponent.prototype, {
Object.assign(ReactNativeTextComponent.prototype, {
construct: function(text) {
// This is really a ReactText (ReactNode), not a ReactElement