WrathChaos / React Native Helpers
Licence: mit
All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy useEasy to use & awesome helpers for React Native.
Stars: ✭ 31
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to React Native Helpers
Geometry2d
Unity3D: A set of helper classes for 2D geometric calculations.
Stars: ✭ 40 (+29.03%)
Mutual labels: helper, helpers
Vivify
Vivify is free CSS animation library.
Stars: ✭ 1,651 (+5225.81%)
Mutual labels: helper, helpers
SQLServerTools
This repo is the home of various SQL-Server-Tools
Stars: ✭ 28 (-9.68%)
Mutual labels: helper, helpers
Logging Helpers
Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.
Stars: ✭ 5 (-83.87%)
Mutual labels: helper, helpers
ComoFazerUmaPerguntaPT
🤔 Farto de fazer perguntas e não ser respondido? Aprenda agora a melhor forma de fazer uma pergunta 🔥
Stars: ✭ 28 (-9.68%)
Mutual labels: helper, helpers
ideas
Идеи по улучшению языка C++ для обсуждения
Stars: ✭ 65 (+109.68%)
Mutual labels: helper, helpers
Styled Map
A super simple way to map props to styles with Styled Components ✨
Stars: ✭ 582 (+1777.42%)
Mutual labels: helper, helpers
React Native Tinder Cards
Implementing Tinder Card animations in React Native
Stars: ✭ 24 (-22.58%)
Mutual labels: expo
React Native Bundle Visualizer
See what packages are increasing your react-native bundle size 📦
Stars: ✭ 641 (+1967.74%)
Mutual labels: expo
Examples
Example projects that demonstrate how to use Expo APIs and integrate Expo with other popular tools
Stars: ✭ 747 (+2309.68%)
Mutual labels: expo
React Native Starter Kit
React Native starter kit, get up and running !
Stars: ✭ 9 (-70.97%)
Mutual labels: expo
Expo Crossy Road
🐥🚙 Crossy Road game clone made in Expo (iOS, Android, web), THREE.js, Tween, React Native. 🐔
Stars: ✭ 701 (+2161.29%)
Mutual labels: expo
Sdras Helper
The main idea is to create a simple and intuitive help system.
Stars: ✭ 28 (-9.68%)
Mutual labels: helper
Alsystemutilities
THIS REPO IS NO LONGER MAINTAINED! Check https://github.com/andrealufino/Luminous. This library provides a list of 80 methods to get every kind of system information!
Stars: ✭ 644 (+1977.42%)
Mutual labels: device
Recyclerviewhelper
📃 [Android Library] Giving powers to RecyclerView
Stars: ✭ 643 (+1974.19%)
Mutual labels: helper
Expo Chroma Key Camera
Live green-screen effect with Expo and THREE.js
Stars: ✭ 28 (-9.68%)
Mutual labels: expo
All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy use
Installation
Add the dependency:
React Native
npm i @freakycoder/react-native-helpers
Peer Dependencies
Zero Dependency
DeviceInfo Usage
import {
Screen,
ScreenWidth,
ScreenHeight,
isIOS,
isAndroid,
} from "@freakycoder/react-native-helpers";
<View>
<Container title="Device OS" subtitle={isIOS ? "iOS" : "Android"} />
<Container title="Screen Height" subtitle={ScreenHeight} />
<Container title="Screen Width" subtitle={ScreenWidth} />
</View>;
Notch (iPhoneX & iPhone 11 & iPhone 12 & iPhone SE & StatusBar) Usage
import {
isIPhoneNotchFamily,
isIPhone11,
isIPhone12,
isIPhone12Mini,
isIPhone12ProMax,
hasNotch,
isIPhoneX,
isIPhoneXr,
isIPhoneXs,
isIPhoneXsMax,
getStatusBarHeight,
} from "@freakycoder/react-native-helpers";
<View>
<Container
title="hasNotch?"
subtitle={hasNotch() ? "iPhone X Family" : "iPhone Family"}
/>
<Container
title="isIPhoneXsMax?"
subtitle={isIPhoneXsMax(Screen) ? "iPhone XsMax" : "NOT iPhone XsMax"}
/>
<Container title="getStatusBarHeight?" subtitle={getStatusBarHeight()} />
</View>;
Normalize Text Usage
Method to normalize size of fonts across devices
import { normalizeText } from "@freakycoder/react-native-helpers";
fontSize: normalizeText(24),
Native Number Format Usage
Method to format the number of your texted number. You can change each options.
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
Configuration - Props
DeviceInfo Props
Property | Type | Description |
---|---|---|
isIOS | boolean | returns if it is an iOS device or not |
isAndroid | boolean | returns if it is an Android device or not |
ScreenWidth | number | get the device's screen width |
ScreenHeight | number | get the device's screen height |
ScreenScale | number | get the device's screen scale ratio |
ScreenFontScale | number | get the device's screen font scale ratio (depends on the user's device font scale setting) |
WindowWidth | number | get the device's window width |
WindowHeight | number | get the device's window height |
WindowScale | number | get the device's window scale ratio |
WindowFontScale | number | get the device's window font scale ratio (depends on the user's device font scale setting) |
PlatformVersion | number | returns the platform version |
DeviceInfo Props
Property | Type | Description |
---|---|---|
hasNotch | function | returns if the device has notch or not |
isIPhoneNotchFamily | function | returns if it the iPhone has in the notch family (iPhone X, 11, 12 Series) |
isIPhoneXFamily | function | returns if it the iPhone has in the notch family (iPhone X, 11, 12 Series) (Backward compatibility) |
isIPhoneSE | function(dim) | returns if device is iPhone SE or not |
isIPhoneX | function(dim) | returns if device is iPhone X or not |
isIPhoneXr | function(dim) | returns if device is iPhone Xr or not |
isIPhoneXs | function(dim) | returns if device is iPhone Xs or not |
isIPhoneXsMax | function(dim) | returns if device is iPhone Xs Max or not |
isIPhone11 | function(dim) | returns if device is iPhone 11 or not |
isIPhone11Pro | function(dim) | returns if device is iPhone 11 Pro or not |
isIPhone11ProMax | function(dim) | returns if device is iPhone 11 Pro Max or not |
isIPhone12 | function(dim) | returns if device is iPhone 12 or not |
isIPhone12Pro | function(dim) | returns if device is iPhone 12 Pro or not |
isIPhone12ProMax | function(dim) | returns if device is iPhone 12 Pro Max or not |
isIPhone12Mini | function(dim) | returns if device is iPhone 12 Mini or not |
Normalize Text Props
Property | Type | Description |
---|---|---|
normalize | function(number) | returns the normalized font size |
Custom Text Props
Property | Type | Description |
---|---|---|
numberFormat | function(value, locale, options) | returns the number formatted font with its given parameters |
Roadmap
- [x]
LICENSE - [x]
Typescript - [x]
iPhone Series Support - [ ] More custom text helpers
- [ ] Write an article about the lib on Medium
Changelog
1.0.0 (2020-10-31)
⚠️ Breaking Change ⚠️
-
isIPhoneXFamily
is renamed toisIPhoneNotchFamily
0.1.3 (2020-03-15)
0.1.2 (2019-12-16)
0.1.1 (2019-12-16)
0.0.2 (2019-07-05)
* This Changelog was automatically generated by github_changelog_generator
Author
FreakyCoder, [email protected]
License
React Native Helpers Library is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].