Skip to main content

ReactNative Troubleshooting

WebView Not Loading

  • Ensure the device has an active internet connection.
  • Check if the SDK URL (https://www.glamar.io/sdk) is accessible.

Image URL Not Loading

If the API returns a delivery.pixelbin.io image URL but the image does not render in a React Native app, pass an empty Referer request header when loading the image.

import { Image } from "react-native";

<Image
source={{
uri: imageUrl,
headers: {
Referer: "",
},
}}
style={{ width: 240, height: 240 }}
/>

referrerPolicy="no-referrer" is only supported by web browsers. In React Native, use request headers on the image source instead.

Camera Permission Issues

  • Verify that camera permission is granted in Android settings.
  • Ensure onPermissionRequest in MainActivity.java correctly grants camera permissions.