Skip to content

Commit 6f5fb76

Browse files
committed
docs: README update for linking
1 parent cec25d9 commit 6f5fb76

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ Add the dependency:
2424
npm 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
3430
import {
3531
Screen,
3632
ScreenWidth,
@@ -48,7 +44,7 @@ import {
4844

4945
## Notch & DynamicIsland Usage
5046

51-
```js
47+
```ts
5248
import {
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

7783
Method to normalize size of fonts across devices
7884

79-
```js
85+
```ts
8086
import { normalizeText } from "@freakycoder/react-native-helpers";
8187

8288
fontSize: normalizeText(24),
@@ -86,7 +92,7 @@ fontSize: normalizeText(24),
8692

8793
Method to format the number of your texted number. You can change each options.
8894

89-
```js
95+
```ts
9096
import { numberFormat } from "@freakycoder/react-native-helpers";
9197

9298
<Text>{numberFormat(50319341)</Text> // Output: 50.319.341

0 commit comments

Comments
 (0)