You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<palign="center">Performance oriented React Native Accordion 60 FPS. A simple component of a common use case of collapsible - a visible title with a collapsible view beneath it.</p>
10
+
<h6align="center">Made with ❤️ by developer for developers</h6>
> Also, you need to install [react-native-gesture-handler](https://github.com/software-mansion/react-native-gesture-handler) & [react-native-svg](https://github.com/react-native-community/react-native-svg), and follow theirs installation instructions.
45
+
46
+
## 🦥 Motivation
47
+
- 💚 I love [React Native](https://reactnative.dev/)
48
+
49
+
50
+
Big love and gratitude to all people who are working on React Native, Expo and React Native Navigation!
51
+
52
+
## Usage
53
+
54
+
For more complete example open [App.tsx](https://github.com/dev-event/react-native-accordion)
55
+
56
+
```tsx
57
+
58
+
```
59
+
60
+
61
+
62
+
63
+
## Props
64
+
65
+
| name | description | required | type | default |
|`points`| An array of x, y coordinates for the drawing of the polygon. | YES |[`TouchPoint[]`](https://github.com/dev-event/react-native-maps-draw/blob/features/draw/src/types/index.ts)|[]|
68
+
|`unitDistance`| Distance unit | NO |[`TouchPoint[]`](https://github.com/dev-event/react-native-maps-draw/blob/features/draw/src/maps/types.d.ts)| 'm' |
69
+
|`colorLine`| Drawing line color | NO | string | '#791679' |
70
+
|`widthLine`| Drawing line width | NO | number | 3 |
71
+
|`onEndDraw`| Callback is called after drawing is complete | NO | (item: IDrawResult) => void ||
|`fillColorCanvas`| Canvas background | NO | string | 'rgba(0,0,0,0.0)'|
78
+
|`backgroundCanvas`| The background of the View element overlapping the map (zIndex: 1) | NO | string | rgba(0,0,0,0.10) |
79
+
80
+
## 🎉 Example
81
+
82
+
Checkout the example [here](https://github.com/dev-event/react-native-accordion).
83
+
84
+
85
+
## 📖 What's inside
86
+
-[React Native Maps](https://github.com/wix/react-native-navigation) - is a component system for maps that ships with platform-native code that needs to be compiled together with React Native.
87
+
-[React Native Svg](https://github.com/react-native-svg/react-native-svg) - provides SVG support to React Native on iOS and Android, and a compatibility layer for the web.
88
+
89
+
90
+
## ✌️ Contributing
91
+
92
+
Pull requests are always welcome! Feel free to open a new GitHub issue for any changes that can be made.
0 commit comments