This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState } from 'react' | |
import { Iconify } from 'react-native-iconify' | |
import { Card, Text, TouchableOpacity, View } from 'react-native-ui-lib' | |
export default function CollapsibleCard(props) { | |
const defaultExpanded = props.defaultExpanded || false | |
const title = props.title || 'Title' | |
const [expanded, setExpanded] = useState(defaultExpanded) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState } from 'react' | |
import { Iconify } from 'react-native-iconify' | |
import { Colors, Text, TouchableOpacity, View } from 'react-native-ui-lib' | |
export default function ExpandableView(props) { | |
const title = props.title || 'Expandable View' | |
const defaultExpanded = props.defaultExpanded || false | |
const divider = props.divider || false | |
const [expanded, setExpanded] = useState(defaultExpanded || false) |