Skip to content

Commit 7542963

Browse files
authored
Modernize imports and lifecycles (#304)
1 parent c0f33b9 commit 7542963

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const BlurView = require('./src/BlurView');
2-
const VibrancyView = require('./src/VibrancyView');
1+
import BlurView from './src/BlurView';
2+
import VibrancyView from './src/VibrancyView';
33

44
module.exports = {
55
BlurView: BlurView,

src/BlurView.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const OVERLAY_COLORS = {
1414
};
1515

1616
class BlurView extends Component {
17-
componentWillMount() {
17+
componentDidMount() {
1818
DeviceEventEmitter.addListener('ReactNativeBlurError', message => {
1919
throw new Error(`[ReactNativeBlur]: ${message}`);
2020
});

0 commit comments

Comments
 (0)