as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
React Native for Vega includes a complete implementation of the URL Web API, supporting all standard properties: hash, host, hostname, href, origin, password, pathname, port, protocol, search, searchParams, and username.

Trailing slash bug fix

Vega’s URL implementation includes a fix for a known React Native issue #24428 where URLs incorrectly received automatic trailing slashes. For example, in stock React Native, a URL like https://example.com was incorrectly converted to https://example.com/, potentially causing 404 errors or unexpected behavior. This issue has been resolved in React Native for Vega, so developers can use the URL class without needing third-party polyfills such as react-native-url-polyfill.

Example

This example demonstrates the fixed trailing slash issue.

最后修改于 2026年10月26日