We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f33b9 commit 7542963Copy full SHA for 7542963
index.js
@@ -1,5 +1,5 @@
1
-const BlurView = require('./src/BlurView');
2
-const VibrancyView = require('./src/VibrancyView');
+import BlurView from './src/BlurView';
+import VibrancyView from './src/VibrancyView';
3
4
module.exports = {
5
BlurView: BlurView,
src/BlurView.android.js
@@ -14,7 +14,7 @@ const OVERLAY_COLORS = {
14
};
15
16
class BlurView extends Component {
17
- componentWillMount() {
+ componentDidMount() {
18
DeviceEventEmitter.addListener('ReactNativeBlurError', message => {
19
throw new Error(`[ReactNativeBlur]: ${message}`);
20
});
0 commit comments