react-native-snow-backgroud 0.1.6 → 0.1.8
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 +11 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,10 +37,17 @@ cd ios && pod install
|
|
|
37
37
|
## Usage
|
|
38
38
|
|
|
39
39
|
```tsx
|
|
40
|
+
import './global.css';
|
|
41
|
+
import {View,Text} from 'react-native';
|
|
40
42
|
import { SnowView } from "react-native-snow-backgroud";
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
export default function App(){
|
|
44
|
+
return(
|
|
45
|
+
<SnowView count={120} color='#E0FFFF' speed={5}>
|
|
46
|
+
<View className='flex-1 justify-center items-center bg-black'>
|
|
47
|
+
<Text className='text-white'>Hello, World!</Text>
|
|
48
|
+
</View>
|
|
49
|
+
</SnowView>
|
|
50
|
+
)
|
|
44
51
|
}
|
|
45
52
|
```
|
|
46
53
|
|
|
@@ -55,6 +62,7 @@ export default function App() {
|
|
|
55
62
|
| Name | Type | Default | Description |
|
|
56
63
|
| ----- | ------ | ------- | ----------------------------------------------- |
|
|
57
64
|
| count | number | 100 | Number of snow particles rendered on the screen |
|
|
65
|
+
| speed | number | 100 | The speed of snow falling on the screen |
|
|
58
66
|
|
|
59
67
|
---
|
|
60
68
|
|
package/package.json
CHANGED