mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-05 03:09:23 +00:00
[change] avoid 'react-dom/lib/*' where possible
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import { Component } from 'react';
|
import { Component } from 'react';
|
||||||
import invariant from 'fbjs/lib/invariant';
|
import invariant from 'fbjs/lib/invariant';
|
||||||
import { unmountComponentAtNode } from 'react-dom/lib/ReactMount';
|
import { unmountComponentAtNode } from 'react-dom';
|
||||||
import renderApplication, { getApplication } from './renderApplication';
|
import renderApplication, { getApplication } from './renderApplication';
|
||||||
|
|
||||||
const emptyObject = {};
|
const emptyObject = {};
|
||||||
|
|||||||
+1
-4
@@ -1,8 +1,5 @@
|
|||||||
import findNodeHandle from './modules/findNodeHandle';
|
import findNodeHandle from './modules/findNodeHandle';
|
||||||
import ReactDefaultInjection from 'react-dom/lib/ReactDefaultInjection';
|
import { render, unmountComponentAtNode } from 'react-dom';
|
||||||
import { render, unmountComponentAtNode } from 'react-dom/lib/ReactMount';
|
|
||||||
|
|
||||||
ReactDefaultInjection.inject();
|
|
||||||
|
|
||||||
// APIs
|
// APIs
|
||||||
import I18nManager from './apis/I18nManager';
|
import I18nManager from './apis/I18nManager';
|
||||||
|
|||||||
+1
-4
@@ -1,8 +1,5 @@
|
|||||||
import findNodeHandle from './modules/findNodeHandle';
|
import findNodeHandle from './modules/findNodeHandle';
|
||||||
import ReactDefaultInjection from 'react-dom/lib/ReactDefaultInjection';
|
import { render, unmountComponentAtNode } from 'react-dom';
|
||||||
import { render, unmountComponentAtNode } from 'react-dom/lib/ReactMount';
|
|
||||||
|
|
||||||
ReactDefaultInjection.inject();
|
|
||||||
|
|
||||||
// APIs
|
// APIs
|
||||||
import Animated from './apis/Animated';
|
import Animated from './apis/Animated';
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
import findNodeHandle from 'react-dom/lib/findDOMNode';
|
import { findDOMNode } from 'react-dom';
|
||||||
export default findNodeHandle;
|
export default findDOMNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user