mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
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:
parent
8a3e1e92f3
commit
cb5d37713f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user