Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@freakycoder/react-native-helpers

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freakycoder/react-native-helpers - npm Package Compare versions

Comparing version
0.1.2
to
0.1.3
+2
lib/src/helpers/text/Text.js
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.
[![Battle Tested ✅](https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge)](https://github.com/WrathChaos/react-native-helpers)
[![npm version](https://img.shields.io/npm/v/@freakycoder/react-native-helpers.svg)](https://www.npmjs.com/package/@freakycoder/react-native-helpers)
[![npm](https://img.shields.io/npm/dt/@freakycoder/react-native-helpers.svg)](https://www.npmjs.com/package/@freakycoder/react-native-helpers)
![expo-compatible](https://img.shields.io/badge/Expo-compatible-9cf.svg)
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![Easy to use & awesome helpers for React Native.](https://img.shields.io/badge/-Easy%20to%20use%20%26%20awesome%20helpers%20for%20React%20Native.-lightgrey?style=for-the-badge)](https://github.com/WrathChaos/react-native-helpers)
[![npm version](https://img.shields.io/npm/v/@freakycoder/react-native-helpers.svg?style=for-the-badge)](https://www.npmjs.com/package/@freakycoder/react-native-helpers)
[![npm](https://img.shields.io/npm/dt/@freakycoder/react-native-helpers.svg?style=for-the-badge)](https://www.npmjs.com/package/@freakycoder/react-native-helpers)
![expo-compatible](https://img.shields.io/badge/Expo-compatible-9cf.svg?style=for-the-badge)
![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](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