From cb5d37713f381aa8e57e9b314c03a25a2e11796b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Fri, 1 Apr 2016 13:49:51 -0700 Subject: [PATCH] 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 --- Libraries/ReactNative/ReactNativeTextComponent.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/ReactNative/ReactNativeTextComponent.js b/Libraries/ReactNative/ReactNativeTextComponent.js index 0eb5e0a6b0d0be..7bd97467f26b61 100644 --- a/Libraries/ReactNative/ReactNativeTextComponent.js +++ b/Libraries/ReactNative/ReactNativeTextComponent.js @@ -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