@freakycoder/react-native-helpers
Advanced tools
| export const numberFormat = (value, locale = "tr-TR", options = {}) => | ||
| new Intl.NumberFormat(locale, options).format(value); |
+3
-0
@@ -20,2 +20,4 @@ import { | ||
| import { numberFormat } from "./helpers/text/Text"; | ||
| export { | ||
@@ -31,2 +33,3 @@ isIOS, | ||
| ScreenHeight, | ||
| numberFormat, | ||
| isIPhoneXsMax, | ||
@@ -33,0 +36,0 @@ normalizeText, |
+1
-1
| { | ||
| "name": "@freakycoder/react-native-helpers", | ||
| "version": "0.1.2", | ||
| "version": "0.1.3", | ||
| "description": "Easy to use & awesome helpers for React Native.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+34
-14
| <img alt="React Native Helpers" src="https://github.com/WrathChaos/react-native-helpers/blob/master/assets/logo.png" width="1050"/> | ||
| Easy to use & awesome helpers for React Native. | ||
| [](https://github.com/WrathChaos/react-native-helpers) | ||
| [](https://www.npmjs.com/package/@freakycoder/react-native-helpers) | ||
| [](https://www.npmjs.com/package/@freakycoder/react-native-helpers) | ||
|  | ||
|  | ||
| [](https://opensource.org/licenses/MIT) | ||
| [](https://github.com/prettier/prettier) | ||
| [](https://github.com/WrathChaos/react-native-helpers) | ||
| [](https://www.npmjs.com/package/@freakycoder/react-native-helpers) | ||
| [](https://www.npmjs.com/package/@freakycoder/react-native-helpers) | ||
|  | ||
|  | ||
| [](https://opensource.org/licenses/MIT) | ||
| <p align="center"> | ||
@@ -20,8 +21,11 @@ <img alt="React Native Helpers" src="https://github.com/WrathChaos/react-native-helpers/blob/master/assets/Screenshots/example.png" width="49.7%" /> | ||
| ### React Native: | ||
| ### React Native | ||
| ```ruby | ||
| npm i @freakycoder/react-native-helpers | ||
| ``` | ||
| // Expo Version | ||
| ### Expo Version | ||
| ```ruby | ||
| "@freakycoder/react-native-helpers": "WrathChaos/@freakycoder/react-native-helpers#expo" | ||
@@ -48,3 +52,3 @@ ``` | ||
| isAndroid | ||
| } from "react-native-helpers"; | ||
| } from "@freakycoder/react-native-helpers"; | ||
@@ -58,3 +62,3 @@ <View> | ||
| ## Noth (iPhoneX & StatusBar) Usage | ||
| ## Notch (iPhoneX & StatusBar) Usage | ||
@@ -70,3 +74,3 @@ ```js | ||
| getStatusBarHeight | ||
| } from "react-native-helpers"; | ||
| } from "@freakycoder/react-native-helpers"; | ||
@@ -91,3 +95,3 @@ <View> | ||
| ```js | ||
| import normalizeText from "./lib/src/helpers/normalize/normalizeText"; | ||
| import { normalizeText } from "@freakycoder/react-native-helpers"; | ||
@@ -97,2 +101,18 @@ fontSize: normalizeText(24), | ||
| ## Native Number Format Usage | ||
| Method to format the number of your texted number. You can change each options. | ||
| ```js | ||
| import { numberFormat } from "@freakycoder/react-native-helpers"; | ||
| <Text>{numberFormat(50319341)</Text> // Output: 50.319.341 | ||
| <Text> | ||
| {numberFormat(1093495, "en", { | ||
| style: "currency", | ||
| currency: "GBP" | ||
| })} | ||
| </Text>// Output: £ 50.319.341 | ||
| ``` | ||
| ## Credits | ||
@@ -102,3 +122,3 @@ | ||
| ### ToDos | ||
| ### Roadmap | ||
@@ -105,0 +125,0 @@ - [x] LICENSE |
30936
3.08%15
7.14%203
2.01%128
18.52%