react-native-better-html 1.0.2
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/LICENSE.txt +21 -0
- package/README.md +57 -0
- package/package.json +55 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 krissvv
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# react-native-better-html
|
|
2
|
+
|
|
3
|
+
A component library for react native that is as close to plane react-native as possible
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
<br/>
|
|
9
|
+

|
|
10
|
+

|
|
11
|
+
<br/>
|
|
12
|
+
<br/>
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
# 🚧 Work in progress 🚧
|
|
16
|
+
|
|
17
|
+
🔴 The library is not yet ready for use - development is actively in progress 🔴
|
|
18
|
+
|
|
19
|
+
## Documentation
|
|
20
|
+
|
|
21
|
+
You can find the full documentation on the home page of the official [Docs](https://krissvv.github.io/react-native-better-html) website.
|
|
22
|
+
|
|
23
|
+
## Requirements
|
|
24
|
+
|
|
25
|
+
- [React](https://react.dev) version 19.0 or above.
|
|
26
|
+
- [React Native](https://reactnative.dev) version 0.82 or above.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
To install `react-native-better-html` run the following command in your project directory:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install react-native-better-html
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Configuration
|
|
37
|
+
|
|
38
|
+
The `<BetterComponentsProvider>` component should wrap your application's root component to apply the configuration.
|
|
39
|
+
|
|
40
|
+
```jsx
|
|
41
|
+
import { Stack } from "expo-router";
|
|
42
|
+
import { BetterComponentsProvider } from "react-native-better-html";
|
|
43
|
+
|
|
44
|
+
export default function RootLayout() {
|
|
45
|
+
return (
|
|
46
|
+
<BetterComponentsProvider>
|
|
47
|
+
<Stack />
|
|
48
|
+
</BetterComponentsProvider>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This is enough for the components to work with the default configurations that the library comes with. They can be overridden when passing `config` prop to the `<BetterComponentsProvider>` tag.
|
|
54
|
+
|
|
55
|
+
## Problems?
|
|
56
|
+
|
|
57
|
+
Ask for help on [Stack Overflow](https://stackoverflow.com/questions/ask), on our [GitHub repository](https://github.com/krissvv/react-native-better-html/issues/new) or contact the contributors.
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-better-html",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "A component library for react native that is as close to plane react-native as possible",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/krissvv/react-native-better-html.git"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://krissvv.github.io/react-native-better-html",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/krissvv/react-native-better-html/issues"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"clean": "rimraf dist",
|
|
25
|
+
"prebuild": "npm run clean",
|
|
26
|
+
"build": "tsup",
|
|
27
|
+
"predeploy": "npm run build",
|
|
28
|
+
"deploy": "npm publish"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"components",
|
|
32
|
+
"react",
|
|
33
|
+
"react-native",
|
|
34
|
+
"better",
|
|
35
|
+
"easy"
|
|
36
|
+
],
|
|
37
|
+
"author": "Kristiyan Valchev (krissvv)",
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/crypto-js": "^4.2.2",
|
|
41
|
+
"@types/react": "^19.1.0",
|
|
42
|
+
"rimraf": "^6.0.1",
|
|
43
|
+
"tsup": "^8.5.0",
|
|
44
|
+
"typescript": "^5.5.3"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
48
|
+
"crypto-js": "^4.2.0",
|
|
49
|
+
"react": "^19.1.0",
|
|
50
|
+
"react-better-core": "^1.0.8",
|
|
51
|
+
"react-native": "^0.81.5",
|
|
52
|
+
"react-native-safe-area-context": "^5.6.2",
|
|
53
|
+
"@legendapp/motion": "^2.5.3"
|
|
54
|
+
}
|
|
55
|
+
}
|