Modernize imports and lifecycles (#304)

This commit is contained in:
Nicolas Charpentier 2019-03-26 14:56:31 -04:00 committed by GitHub
parent c0f33b951d
commit 7542963a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -14,7 +14,7 @@ const OVERLAY_COLORS = {
};
class BlurView extends Component {
componentWillMount() {
componentDidMount() {
DeviceEventEmitter.addListener('ReactNativeBlurError', message => {
throw new Error(`[ReactNativeBlur]: ${message}`);
});