问题
Im trying to convert a number to price format in react native. How to use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat (Intl.NumberFormat) this with react native?
回答1:
Looks like you need the international version of JSC: Android: https://github.com/react-native-community/jsc-android-buildscripts#international-variant
For iOS you'd need to use Intl.js polyfill https://github.com/andyearnshaw/Intl.js/
来源:https://stackoverflow.com/questions/52812751/how-to-use-intl-numberformat-with-react-native