Skip to content

Commit 03952f2

Browse files
committed
docs(readme): 📝 update docs with instructions on fonts linking and haptics package dependency
1 parent 9e95e56 commit 03952f2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/getting-started.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,30 @@ export default App;
4444

4545
```
4646

47+
## Further Instructions
48+
49+
### Fonts Loading (Android)
50+
Our components look well with the Inter font on Android.
51+
52+
You can pick the fonts from [here](../font-assets/)
53+
54+
And link and load it up in your React Native project using [expo-font](https://docs.expo.dev/versions/latest/sdk/font/) library if using Expo.
55+
56+
The library works well with bare React Native workflow too.
57+
58+
Check out blogs on getting to know about [Adding Fonts to React Native](https://medium.com/@_iam_karthik/list/adding-fonts-to-react-native-93aee6bace40) in our [Publication](https://medium.com/timeless).
59+
60+
#### Haptics
61+
62+
Haptics is a technology that allows devices to provide tactile feedback to users, simulating the sense of touch. So it can be used to enhance the user experience in a variety of ways, such as providing feedback when a button is pressed, alerting the user to an event, or guiding the user through a task.
63+
64+
In AdaptUI we have enabled the Haptics to all our Tappable components (Button, Tag, Radio, Checkbox and Switch) through [expo-haptics](https://docs.expo.dev/versions/latest/sdk/haptics/).
65+
66+
You will have to install this as a dependency to get your haptics working on our Tappable components.
67+
68+
You can use the haptics through our hook [`useHaptics`](../src//utils//useHaptic.ts)
69+
70+
4771
## Simple Usage
4872

4973
Code below will render an [Avatar](./Avatar.md)

0 commit comments

Comments
 (0)