Modernize imports and lifecycles (#304)
This commit is contained in:
parent
c0f33b951d
commit
7542963a52
4
index.js
4
index.js
|
@ -1,5 +1,5 @@
|
|||
const BlurView = require('./src/BlurView');
|
||||
const VibrancyView = require('./src/VibrancyView');
|
||||
import BlurView from './src/BlurView';
|
||||
import VibrancyView from './src/VibrancyView';
|
||||
|
||||
module.exports = {
|
||||
BlurView: BlurView,
|
||||
|
|
|
@ -14,7 +14,7 @@ const OVERLAY_COLORS = {
|
|||
};
|
||||
|
||||
class BlurView extends Component {
|
||||
componentWillMount() {
|
||||
componentDidMount() {
|
||||
DeviceEventEmitter.addListener('ReactNativeBlurError', message => {
|
||||
throw new Error(`[ReactNativeBlur]: ${message}`);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue