Skip to content

Commit

Permalink
Remove use of Object.assign module
Browse files Browse the repository at this point in the history
Summary:I'm [getting rid of it from React](facebook/react#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 facebook#6766

Differential Revision: D3128135

Pulled By: vjeux

fb-gh-sync-id: 675913ba457abcd8c194facb9ff58255c9dceda5
fbshipit-source-id: 675913ba457abcd8c194facb9ff58255c9dceda5
  • Loading branch information
zpao authored and zebulgar committed Jun 18, 2016
1 parent 9ec8262 commit 486b3a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Libraries/ReactNative/ReactNativeTextComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 486b3a9

Please sign in to comment.