Skip to content

Commit 5e2b1b6

Browse files
RahulRahul
authored andcommitted
will recive props fix
1 parent a3898dd commit 5e2b1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class MlkitBarcodeView extends PureComponent {
8484
this.eventListener && this.eventListener.remove();
8585
}
8686

87-
componentWillReceiveProps(newProps) {
87+
UNSAFE_componentWillReceiveProps(newProps) {
8888
if (newProps.enableScanner && !this.state.enableScan) {
8989
this.setState({ enableScan: true }, () => {
9090
// console.log(TAG,"Starting Scanner enableScan");

0 commit comments

Comments
 (0)