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

[Release] App Show White Screen #402

Open
shiroze opened this issue Dec 19, 2022 · 2 comments
Open

[Release] App Show White Screen #402

shiroze opened this issue Dec 19, 2022 · 2 comments

Comments

@shiroze
Copy link

shiroze commented Dec 19, 2022

When using the package My App Show White Screen When app failed scan the Code.

Code :

<QRCodeScanner
  onRead={onSuccess}
  reactivate={true}
  reactivateTimeout={3000}
  cameraType={'front'}
  showMarker={true}
  cameraProps={{captureAudio: false}}
  fadeIn
/>

Logic:

const onSuccess = e => {
  if(!visible) {
    axios.post(`${api}/GetData`, {
      "EncryptStr": e.data
    }).then((respJson) => {
      var resp = respJson.data;
      if(!resp.Err) {
        setData(resp.Data);
      }
    }).catch((err) => {
      Alert("Something Wrong")
    })
  }
}

Package.json

"axios": "1.2.0-alpha.1",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-camera": "react-native-camera/react-native-camera#3443/head",
"react-native-qrcode-scanner": "^1.5.5",

Solution for now is exit the app then re-Open. this is not a solution but a Bug. Did anyone facing this Issue ?

Package last maintenance is 10 Month - Last Year and more Coming Issue here.
If this package doesn't have maintainer please Archive and Put Notice at Description so people know.

Thanks for this great package @moaazsidat

@shiroze shiroze changed the title App Show White Screen after 20 Scan [Release] App Show White Screen Dec 19, 2022
@ninjaroot-509
Copy link

me tooo!

@huanguolin
Copy link

same issue here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants