[fix] remove invariant error from Portal

This commit is contained in:
Nicolas Gallagher
2016-03-10 08:55:23 -08:00
parent c589d79035
commit 706fa887e6
-5
View File
@@ -6,7 +6,6 @@
* @flow
*/
import invariant from 'fbjs/lib/invariant'
import Platform from '../../apis/Platform'
import React, { Component, PropTypes } from 'react'
import StyleSheet from '../../apis/StyleSheet'
@@ -81,10 +80,6 @@ class Portal extends Component {
}
render() {
invariant(
_portalRef === this || _portalRef === undefined,
'More than one Portal instance detected. Never use <Portal> in your code.'
)
_portalRef = this
if (!this.state.modals) { return null }
const modals = []