UNPKG

artwork-react-native

Version:

artwork design master for react-native

25 lines (20 loc) 699 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _reactNativeRootSiblings = require('react-native-root-siblings'); var _reactNativeRootSiblings2 = _interopRequireDefault(_reactNativeRootSiblings); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var instance = null; var topView = { set: function set(view) { instance && topView.remove(); instance = new _reactNativeRootSiblings2['default'](view); }, remove: function remove() { if (instance instanceof _reactNativeRootSiblings2['default']) { instance.destroy(); } } }; exports['default'] = topView;