📄 expo/versions/v52.0.0/sdk/url

File: url.md | Updated: 11/15/2025

Source: https://docs.expo.dev/versions/v52.0.0/sdk/url

Hide navigation

Search

Ctrl K

Home Guides EAS Reference Learn

Reference version

SDK 52

Archive Expo Snack Discord and Forums Newsletter

URL

GitHub Changelog npm

Standard URL API available on all Expo-supported platforms.

GitHub Changelog npm

Android

iOS

tvOS

Web

Copy page


The standard URL API is available on all Expo-supported platforms.

Installation


This API is part of the expo package. On native platforms, built-in URL and URLSearchParams implementations replace the shims in react-native. Refer to the browser and server runtime support for web and Node.js.

Usage


const url = new URL('https://expo.dev'); const params = new URLSearchParams();

Conformance


Expo's built-in URL support attempts to be fully spec compliant .

The only missing exception is that native platforms do not currently support non-ASCII characters in the hostname.

Consider the following example:

console.log(new URL('http://🥓').toString());

This outputs the following:

  • Web, Node.js: http://xn--pr9h/
  • Android, iOS: http://🥓/