Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android][Expo Go] Image request headers seem not to be set #28362

Open
sanak opened this issue Apr 22, 2024 · 0 comments
Open

[Android][Expo Go] Image request headers seem not to be set #28362

sanak opened this issue Apr 22, 2024 · 0 comments
Labels
Expo Go The client distributed on app stores Image needs review Issue is ready to be reviewed by a maintainer

Comments

@sanak
Copy link

sanak commented Apr 22, 2024

Minimal reproducible example

https://snack.expo.dev/@nagase/expo-go-android-image-request-header

What platform(s) does this occur on?

Android

Did you reproduce this issue in a development build?

No (tested in Expo Go)

Summary

In Android Expo Go, image request header like the following seems not to be set.

import { Base64 } from 'js-base64';
:
      <Image style={styles.logo} source={{
        uri: 'https://sanak.sakura.ne.jp/expo-example/snack-icon.png',
        method: 'GET',
        headers: {
          Authorization: `Basic ${Base64.btoa('expo-example:expo-example')}`
        }
      }} />

In iPhone Expo Go and production builds are no problem.

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.0 - ~/.asdf/installs/nodejs/18.18.0/bin/node
Yarn: 1.22.19 - ~/.asdf/installs/nodejs/18.18.0/bin/yarn
npm: 9.8.1 - ~/.asdf/plugins/nodejs/shims/npm
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.11090377
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
npmPackages:
expo: ~50.0.14 => 50.0.17
react: 18.2.0 => 18.2.0
react-native: 0.73.6 => 0.73.6
Expo Workflow: managed

Expo Doctor Diagnostics

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that packages match versions required by installed Expo SDK

@sanak sanak added the needs validation Issue needs to be validated label Apr 22, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels Apr 22, 2024
@byCedric byCedric added Expo Go The client distributed on app stores Image labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expo Go The client distributed on app stores Image needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants