Skip to content

Commit bd03d1d

Browse files
author
Hossein Pousti
committed
docs: updating readme and usage
1 parent bb683a2 commit bd03d1d

3 files changed

Lines changed: 82 additions & 7 deletions

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</p>
1010

1111
<div align="center">
12-
⭐️ Highly customizable - Responsive UI - Dark/Light mode support ⭐️
12+
⭐️ Highly customizable - Responsive UI - RTL Support - Dark/Light mode support ⭐️
1313
</div>
1414

1515
<br />
@@ -36,6 +36,13 @@
3636

3737
React native fast base UI kit will help you to develop your apps faster with optimized and tested components.
3838

39+
Quick preview for RTL/LTR (English and Persian languages) and light/dark mode, featuring a fake tweet from Elon Musk about Fast Base! <a href="/example/src/TweetApp">Source here</a>
40+
<br />
41+
42+
<p align="center">
43+
<img src="./assets/tweet.gif" alt="tweet app" width="40%">
44+
</p>
45+
3946
## 💫 Features
4047

4148
- <strong>Cross-platform</strong>
@@ -50,6 +57,8 @@ React native fast base UI kit will help you to develop your apps faster with opt
5057
- <strong>Dark/Light mode support</strong>
5158
- <strong>Attractive components</strong>
5259

60+
- <strong>RTL/LTR support as local and globally</strong>
61+
5362
- <strong>Written by Typescript, fully typed, and extendable</strong>
5463

5564
## 📀 Installation

assets/tweet.gif

66.1 MB
Loading

docs/USAGE.md

Lines changed: 72 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ Default: Based on your device mode will be set.
9292

9393
Description: To set the current application theme mode.
9494

95+
### <i>dir</i>
96+
97+
Type: `"ltr" | "rtl"`
98+
99+
Default: `ltr`
100+
101+
Description: To set the current application layout direction globally.
102+
95103
### <i>enableSystemMode</i>
96104

97105
Type: `boolean`
@@ -223,6 +231,14 @@ changeMode('dark' | 'light', async newTheme => {
223231

224232
Flexible and customizable components to implement your layouts as default will not add unnecessary style to the styles and unused styles will be removed. The component was extended from <a href="https://reactnative.dev/docs/view">React Native View</a> component so you are able to use all of the View component properties too.
225233

234+
### <i>dir</i>
235+
236+
Type: `"ltr" | "rtl"`
237+
238+
Default: `ltr`
239+
240+
To set the current component layout direction locally, it has a higher priority against the global direction. Additionally, when using **_dir_** locally in the Wrapper, its children will inherit the direction and won't need to specify **_dir_** themselves.
241+
226242
### <i>mode</i>
227243

228244
Type: `'normal' | 'column' | 'column-reverse' | 'row' | 'row-reverse'`
@@ -296,6 +312,14 @@ Would you like to learn more about `Wrapper` usage, <a href="/example/src/Wrappe
296312

297313
The Container component was implemented by `SafeAreaView` in `react-native-safe-area-context` to create a full-screen layout to put other components on a screen inside it, so you are able to use all properties of the component. In additional:
298314

315+
### <i>dir</i>
316+
317+
Type: `"ltr" | "rtl"`
318+
319+
Default: `ltr`
320+
321+
To set the current component layout direction locally, it has a higher priority against the global direction. Additionally, when using **_dir_** locally in the Container, its children will inherit the direction and won't need to specify **_dir_** themselves.
322+
299323
### <i>background</i>
300324

301325
Type: `AllColorsType | string`
@@ -325,6 +349,14 @@ Would you like to learn more about `Container` usage, <a href="/example/src/Cont
325349

326350
Text component extended from <a href="https://reactnative.dev/docs/text">React Native Text</a> so you capable of to use all the component props in the Text component, in additional:
327351

352+
### <i>dir</i>
353+
354+
Type: `"ltr" | "rtl"`
355+
356+
Default: `ltr`
357+
358+
To set the current component layout direction locally, it has a higher priority against the global direction.
359+
328360
### <i>size</i>
329361

330362
Type: `number | xs | sm | md | lg | xl | 2xl | 3xl | 4xl | 5xl | 6xl | 7xl | 8xl | 9xl | 10xl`
@@ -380,6 +412,14 @@ Would you like to learn more about `Text` usage, <a href="/example/src/TextGapEx
380412

381413
The Button component was extended from <a href="https://reactnative.dev/docs/pressable">React Native Pressable</a> component so you are able to use all of the component properties and also it helps you create attractive customizable opacity and pressable buttons with title or custom children.
382414

415+
### <i>dir</i>
416+
417+
Type: `"ltr" | "rtl"`
418+
419+
Default: `ltr`
420+
421+
To set the current component layout direction locally, it has a higher priority against the global direction. Additionally, when using **_dir_** locally in the Button and it has children, the children will inherit the direction and won't need to specify **_dir_** themselves.
422+
383423
### <i>children</i>
384424

385425
Type: `string | ReactNode`
@@ -517,6 +557,14 @@ Another component that is commonly used in applications is text input. The Input
517557

518558
### Common Props
519559

560+
### <i>dir</i>
561+
562+
Type: `"ltr" | "rtl"`
563+
564+
Default: `ltr`
565+
566+
To set the current component layout direction locally, it has a higher priority against the global direction.
567+
520568
### <i>disabled</i>
521569

522570
Type: `boolean`
@@ -720,6 +768,14 @@ Would you like to learn more about `Input` usage, <a href="/example/src/InputExa
720768

721769
One of the other components used in almost all applications is Image, This component is extended from <a href="https://reactnative.dev/docs/image">React Native Image</a> component so you are able to use all of the component properties. In additional:
722770

771+
### <i>dir</i>
772+
773+
Type: `"ltr" | "rtl"`
774+
775+
Default: `ltr`
776+
777+
To set the current component layout direction locally, it has a higher priority against the global direction.
778+
723779
### <i>size</i>
724780

725781
Type: `xs | sm | md | lg | xl | 2xl`
@@ -775,6 +831,14 @@ Would you like to learn more about `Image` usage, <a href="/example/src/ImageExa
775831

776832
This component will help you make `vertical` or `horizontal` space between your elements as `padding` or `border`.
777833

834+
### <i>dir</i>
835+
836+
Type: `"ltr" | "rtl"`
837+
838+
Default: `ltr`
839+
840+
To set the current component layout direction locally, it has a higher priority against the global direction.
841+
778842
### <i>direction</i>
779843

780844
Type: `vertical | horizontal`
@@ -860,6 +924,14 @@ Would you like to learn more about `Gap` usage, <a href="/example/src/TextGapExa
860924

861925
This component will help when you want to show a progress bar such as download/upload or loading indicator with progress or whatever you want.
862926

927+
### <i>dir</i>
928+
929+
Type: `"ltr" | "rtl"`
930+
931+
Default: `ltr`
932+
933+
To set the current component layout direction locally, it has a higher priority against the global direction.
934+
863935
### <i>value</i>
864936

865937
Type: `number`
@@ -902,12 +974,6 @@ Default: `true`
902974

903975
To specify the component animations use native driver or JS bridge
904976

905-
### <i>isRTL</i>
906-
907-
Type: `boolean`
908-
909-
To fill progress bar right to left
910-
911977
Would you like to learn more about `ProgressBar` usage, <a href="/example/src/ProgressExample/index.tsx">see the example</a>
912978
<br />
913979

0 commit comments

Comments
 (0)