mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-12 17:44:13 +00:00
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…
x
Reference in New Issue
Block a user