react-native-bread 0.3.0 → 0.4.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 +23 -7
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -29,15 +29,31 @@ An extremely lightweight, opinionated toast component for React Native.
|
|
|
29
29
|
bun add react-native-bread
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
####
|
|
32
|
+
#### Peer Dependencies
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
This package requires the following peer dependencies:
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
| Package | Version |
|
|
37
|
+
|---------|---------|
|
|
38
|
+
| [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started) | >= 4.2.0 |
|
|
39
|
+
| [react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler/docs/) | >= 2.25.0 |
|
|
40
|
+
| [react-native-safe-area-context](https://docs.expo.dev/versions/latest/sdk/safe-area-context/) | >= 5.0.0 |
|
|
41
|
+
| [react-native-svg](https://github.com/software-mansion/react-native-svg) | >= 15.8.0 |
|
|
42
|
+
| [react-native-worklets](https://github.com/margelo/react-native-worklets-core) | >= 0.7.0 |
|
|
43
|
+
|
|
44
|
+
If you don't have these installed, you can install all peer dependencies at once:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
bun add react-native-reanimated react-native-gesture-handler react-native-safe-area-context react-native-svg react-native-worklets
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Or with npm:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
npm install react-native-reanimated react-native-gesture-handler react-native-safe-area-context react-native-svg react-native-worklets
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
> **Note**: `react-native-reanimated` 4.2.x requires `react-native-worklets` 0.7.x. Using older versions of worklets with reanimated 4.2+ will cause compatibility issues.
|
|
41
57
|
|
|
42
58
|
|
|
43
59
|
## Usage
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-bread",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A lightweight
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "A lightweight toast library for React Native with premium feeling animations and complex gesture support",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
7
7
|
"types": "lib/typescript/index.d.ts",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"react-native": "0.81.5",
|
|
43
43
|
"react-native-builder-bob": "^0.35.2",
|
|
44
44
|
"react-native-gesture-handler": "~2.28.0",
|
|
45
|
-
"react-native-reanimated": "~4.
|
|
45
|
+
"react-native-reanimated": "~4.2.1",
|
|
46
46
|
"react-native-safe-area-context": "~5.4.0",
|
|
47
47
|
"react-native-svg": "15.12.1",
|
|
48
|
-
"react-native-worklets": "0.
|
|
48
|
+
"react-native-worklets": "0.7.2",
|
|
49
49
|
"terser": "^5.44.1",
|
|
50
50
|
"typescript": "~5.9.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=18.0.0",
|
|
54
54
|
"react-native": ">=0.76.0",
|
|
55
|
-
"react-native-gesture-handler": ">=2.
|
|
56
|
-
"react-native-reanimated": ">=4.
|
|
57
|
-
"react-native-safe-area-context": ">=
|
|
58
|
-
"react-native-svg": ">=
|
|
59
|
-
"react-native-worklets": ">=0.
|
|
55
|
+
"react-native-gesture-handler": ">=2.25.0",
|
|
56
|
+
"react-native-reanimated": ">=4.2.0",
|
|
57
|
+
"react-native-safe-area-context": ">=5.0.0",
|
|
58
|
+
"react-native-svg": ">=15.8.0",
|
|
59
|
+
"react-native-worklets": ">=0.7.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"react-native-gesture-handler": {
|