Intl.DateTimeFormat#formatRange is undefined #50422
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Newer Patch Available
Description
Intl.DateTimeFormat#formatRange seems to be undefined, which causes issues with libraries such as Luxon that does datetime stuff. See reproduction for an example.
Luxon issue: moment/luxon#1696 (comment)
Basically the same as #47640. That issue was closed with the comment that the issue was fixed in 0.76.2 but the issue is still present in 0.77.1.
Steps to reproduce
npm install luxon
Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString();
.formatRange
is used internally bytoLocaleString
.React Native Version
0.76.7 and 0.77.2
Affected Platforms
Runtime - iOS, Runtime - Android
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@traed/ts-luxon-bug?platform=ios
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: