Issue
Updated 2022: With hermes enabled you should be good now.
I'm using .toLocaleString()
on react-native for my number output. All work on IOS but seems not working on Android. This is normal or? Do I need to use a function for the decimal?
Solution
You can use
number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
Answered By - Tamir Haim Rabia
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.