@hitesh0009/react-native-basic-form 1.2.9 β 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
````md
|
|
1
2
|
# π React Native Basic Form
|
|
2
3
|
|
|
3
4
|
### Control your entire form using JSON β not JSX.
|
|
@@ -19,7 +20,7 @@ The renderer stays the same β **only the JSON changes**.
|
|
|
19
20
|
- Dynamic or server-driven forms are difficult
|
|
20
21
|
- UI logic and form structure get tightly coupled
|
|
21
22
|
|
|
22
|
-
As a result, forms become one of the **least maintainable parts** of an app.
|
|
23
|
+
As a result, forms often become one of the **least maintainable parts** of an app.
|
|
23
24
|
|
|
24
25
|
---
|
|
25
26
|
|
|
@@ -32,36 +33,35 @@ As a result, forms become one of the **least maintainable parts** of an app.
|
|
|
32
33
|
- how they behave
|
|
33
34
|
- how they look
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
type: 'input',
|
|
39
|
-
label: 'Phone Number'
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// β¦and the UI updates automatically
|
|
36
|
+
Change the JSON β the form changes.
|
|
37
|
+
No JSX rewrites. No duplicated components.
|
|
43
38
|
|
|
39
|
+
A **schema-driven, fully customizable form renderer for React Native**.
|
|
44
40
|
|
|
41
|
+
> This library does **not** manage form state, validation, or translations.
|
|
42
|
+
> It only renders what you describe.
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
---
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
Layouts, inputs, and buttons are described declaratively and rendered consistently.
|
|
46
|
+
## π― Who This Is For
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
- Apps with many forms
|
|
49
|
+
- Admin panels or dashboards
|
|
50
|
+
- Server-driven or config-based UIs
|
|
51
|
+
- Teams that want consistent form behavior
|
|
52
|
+
- Developers who prefer data-driven UI
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
56
56
|
## β¨ Features
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
- π§© **Schema-based rendering**
|
|
59
|
+
- π **Row / Column layouts**
|
|
60
|
+
- π¨ **Fully customizable styles**
|
|
61
|
+
- π§ **No internal state** (you control values & handlers)
|
|
62
|
+
- π **Language-agnostic** (i18n handled by user)
|
|
63
|
+
- π‘ **Type-safe** with TypeScript
|
|
64
|
+
- π§± **Easily extensible** (add new field types)
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ Layouts, inputs, and buttons are described declaratively and rendered consistent
|
|
|
69
69
|
|
|
70
70
|
```sh
|
|
71
71
|
npm install @hitesh0009/react-native-basic-form
|
|
72
|
-
|
|
72
|
+
````
|
|
73
73
|
|
|
74
74
|
or
|
|
75
75
|
|
|
@@ -350,3 +350,5 @@ Please keep PRs:
|
|
|
350
350
|
|
|
351
351
|
MIT
|
|
352
352
|
|
|
353
|
+
```
|
|
354
|
+
|
package/package.json
CHANGED