Skip to content
This repository was archived by the owner on May 12, 2023. It is now read-only.

For IOS getting ERROR TypeError: null is not an object (evaluating 'NativeModule.requestPermission' #403

@praveenreddy9

Description

@praveenreddy9

What's happening?

For Android its working properly during IOS scan getting the error as ERROR TypeError: null is not an object (evaluating 'NativeModule.requestPermission' but i have installed by following the steps.

Please help me fix the issue or suggest the changes required.

How can it be reproduced?

If we try to use the qr code scanner code in render its getting the above error but with the same code its working in Android

                               <QRCodeScanner
                                    onRead={this.barcodeReceived.bind(this)}
                                    style={{flex: 1}}
                                    cameraStyle={{height: Dimensions.get('window').height}}
                                    showMarker={false}
                                    fadeIn={false}
                                    reactivate={true}
                                    cameraType={"back"}
                                />

Build details

"react": "17.0.2",
"react-native": "0.66.4",
"react-native-permissions": "^3.6.1",
"react-native-qrcode-scanner": "^1.2.1",

Simulator Screen Shot - iPhone 13 - 2023-01-03 at 19 09 33

Simulator Screen Shot - iPhone 13 - 2023-01-03 at 19 09 49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions