Giter Club home page Giter Club logo

react-native-locale's People

Contributors

adammach avatar ashleydw avatar ianjsikes avatar kanerogers avatar krailler avatar mikelambert avatar minhtule avatar patrickomeara avatar px-amaac avatar rikur avatar steida avatar swansontec avatar vinayan3 avatar vojtechbartos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-locale's Issues

decimal to string not work

Locale.numberFromDecimalString('125.01,10').then((response) => {
console.log('then', response);
});

This function not work, can u check this?

Getting Instance of the Currency on Android results in Crashes

java.lang.IllegalArgumentException: Unsupported ISO 3166 country: en,

Some Android devices have the locale set as en which the currency map doesn't have values for. It will cause the getConstants to throw an exception. I forked have a fix which allows currency values to be null. It's not ideal but others have run into this issue too. http://stackoverflow.com/questions/13316719/how-to-create-currency-instance-with-non-iso-3166-country-like-en-uk

Strange issues

For some reason, I need

  • // eslint-disable-line import/no-unresolved
  • flowtype has the similar problem

Probably something wrong with package.json. Missing main?

requiresMainQueueSetup omission

Not sure if I should make this a pull request but I got this warning in the IOS simulator.

Module RNLocale requires main queue setup since it overrides constantsToExport but doesn't implement requiresMainQueueSetup. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.

It didn't cause the app build to fail or compromise performance but the issue has to do with the RCTLocale.m library lacking the following declaration at the end:

+ (BOOL)requiresMainQueueSetup
{
    return YES;
}

It was easy enough to make the adjustment in X-code but it would probably be worth fixing.

React-Native 0.51.0
react-native-locale 0.18

Podspec is broken

the current podspec uses a github tag, but there's only a single tag: v0.0.2, whereas the current release's podspec will try and find a tag for 0.0.19. this breaks when attempting to do a pod install.

Timezone Issue

I am using the getTimezone function and its working fine, but suddenly for some users, we started seeing deprecated timezone IDs being stored eg. instead of getting "America/New_York" we are getting "US/Eastern", these deprecated IDs are not working on our backend Node engine, any idea how to fix this and what can be the reason?

`Cannot find module` error

Hi, thanks for this great library first of all!

Iโ€™m trying to use but I keep getting the error:
Cannot find module 'react-native-locale'

This is the way I import:
import Locale from 'react-native-locale'

Any idea? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.