taggon / react-native-intl

React Native module ships native Intl implementation and Translation extension
MIT License
51 stars 16 forks source link

NumberFormat Not working #11

Open shubhamkes opened 5 years ago

shubhamkes commented 5 years ago

import IntlP from 'react-native-intl';

export async function NumberFormatter() {
    const result = await (new IntlP.NumberFormat('en-US')).format(123456);
    alert(result);
}

Seems there is some issue with library or dont know what, but alert is never executed.

"react": "^16.0.0-beta.5" "react-native": "^0.49.5" "react-native-intl": "^1.0.0"

Do I need to link this library? Please help

shubhamkes commented 5 years ago

I had to link library. Its working