React Native Toggle Box for showing/hiding content with sliding effect. Should looks like classical SlideToggle from jQuery.
npm install react-native-show-hide-toggle-box* ToggleBox must be surrounded with ScrollView (not as the closest parent)
* PRs welcome
``bash`
npm i react-native-show-hide-toggle-box --save
or
`bash`
yarn add react-native-show-hide-toggle-box --save
`javascript
import ToggleBox from 'react-native-show-hide-toggle-box'
...
`
|Prop name | Default prop | Required | Note
| --- | --- | --- | --- |
| arrowColor | rgb(178, 178, 178) | - | - |arrowSize
| | 30 | - | - |arrowDownType
| | 'keyboard-arrow-down' | - | Icon name fromreact-native-vector-icons/MaterialIcons |arrowUpType
| | 'keyboard-arrow-up' | - | Icon name fromreact-native-vector-icons/MaterialIcons |children
| | - | Yes | Element which you want to show inside of the box | expanded
| | false | - | Boolean if box should be expanded or not |label
| | - | Yes | Left label on the left of title |style
| | {} | - | Custom styles |value
| | null` | - | Value on the right title |