maintainlyhq / react-native-locale Goto Github PK
View Code? Open in Web Editor NEWSimple locale information and methods for react native
Simple locale information and methods for react native
Hi, is there an option to present the date without year, i.e.:
March 20
?
Locale.numberFromDecimalString('125.01,10').then((response) => {
console.log('then', response);
});
This function not work, can u check this?
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
index.android.js date not being passed as a DateTime object.
For some reason, I need
Probably something wrong with package.json. Missing main?
Running in react-native & expo:
var Locale = require("react-native-locale");
const res = Locale.dateFormat(date.getTime(), "medium", "medium");
as in manual. I get an error null is not an object (evaluating 'NativeLocale.dateFormat')
https://github.com/yahoo/react-intl
Universal usage example https://github.com/este/este
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
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
.
When I install this package, I get a directory node_modules/react-native-locale/android/build/... which contains 44MB of stuff. Unless I'm missing something, I don't believe this should have been included in the NPM package.
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?
In IOS, locale get constants returns undefined. Any work around ?
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? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.