Skip to content

docs: document using OkHttp 5 on Android - #5363

Open
ide wants to merge 1 commit into
react:mainfrom
ide:okhttp5-android-docs
Open

ide wants to merge 1 commit into
react:mainfrom
ide:okhttp5-android-docs

Conversation

@ide

@ide ide commented Dec 3, 2026

Copy link
Copy Markdown

Why

react/react-native#60385 lets Android apps use OkHttp 5, starting with React Native 0.89. The Networking page doesn't say how to opt in, or what to do about the OkHttp 4 version of okhttp-urlconnection that react-android brings in.

How

Adds a "Using OkHttp 5 on Android" section to the Networking page, before "Configuring NSURLSession on iOS". It shows how to add OkHttp 5, when to also add okhttp-urlconnection at the same version, and how to exclude the OkHttp 4 okhttp-urlconnection from react-android.

Test Plan

npx prettier --check docs/network.md and npx eslint docs/network.md pass.

@Simek Simek added the 🕐 Waiting on PR These may be waiting for a PR to the react/react-native to be merged label Dec 3, 2026
@Simek

Simek commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Hey @ide, thanks for updating the docs! 👍

Will land it as soon as upstream core PR is getting merged, and we have confirmation it would get cherry-picked to 0.89 branch.

Also, looks like DSO bot is not happy with lack of commit sign-off, can you fix that?

Why
===

react/react-native#60385 lets Android apps use OkHttp 5, starting with React Native 0.89. The Networking page doesn't say how to opt in, or what to do about the OkHttp 4 version of `okhttp-urlconnection` that `react-android` brings in.

How
===

Adds a "Using OkHttp 5 on Android" section to the Networking page, before "Configuring NSURLSession on iOS". It shows how to add OkHttp 5, when to also add `okhttp-urlconnection` at the same version, and how to exclude the OkHttp 4 `okhttp-urlconnection` from `react-android`.

Test Plan
=========

`npx prettier --check docs/network.md` and `npx eslint docs/network.md` pass.

Signed-off-by: James Ide <ide@expo.dev>
@ide
ide force-pushed the okhttp5-android-docs branch from 64ae021 to 4582250 Compare December 3, 2026 13:07
@ide

ide commented Dec 3, 2026

Copy link
Copy Markdown
Author

@Simek Added the DCO sign-off in 4582250 — the DCO check is passing now.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🕐 Waiting on PR These may be waiting for a PR to the react/react-native to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants