File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,13 +24,9 @@ Add the dependency:
2424npm i @freakycoder/react-native-helpers
2525```
2626
27- ## Peer Dependencies
28-
29- <b ><i >Zero Dependency</i ></b >
30-
3127## DeviceInfo Usage
3228
33- ``` jsx
29+ ``` tsx
3430import {
3531 Screen ,
3632 ScreenWidth ,
@@ -48,7 +44,7 @@ import {
4844
4945## Notch & DynamicIsland Usage
5046
51- ``` js
47+ ``` ts
5248import {
5349 getStatusBarHeight ,
5450 hasNotch ,
@@ -72,11 +68,21 @@ import {
7268< / View > ;
7369```
7470
71+ ## Open Applications or Stores by Linking
72+
73+ ``` ts
74+ import { openAppInPlayStore , openAppInAppStore , openExternalApp } from " @freakycoder/react-native-helpers" ;
75+
76+ openAppInPlayStore (' com.example.android' );
77+ openAppInAppStore (' 123456789' );
78+ openExternalApp (' com.example.android' , ' 123456789' );
79+ ```
80+
7581## Normalize Text Usage
7682
7783Method to normalize size of fonts across devices
7884
79- ``` js
85+ ``` ts
8086import { normalizeText } from " @freakycoder/react-native-helpers" ;
8187
8288fontSize : normalizeText (24 ),
@@ -86,7 +92,7 @@ fontSize: normalizeText(24),
8692
8793Method to format the number of your texted number. You can change each options.
8894
89- ``` js
95+ ``` ts
9096import { numberFormat } from " @freakycoder/react-native-helpers" ;
9197
9298<Text >{numberFormat(50319341)</Text > // Output: 50.319.341
You can’t perform that action at this time.
0 commit comments