import React from 'react'; import { Tooltip as UncontrolledTooltip, TooltipProps, Text, } from 'react-native-elements'; import { Header } from '../components/header'; import { View, StyleSheet, Dimensions, ScrollView } from 'react-native'; import colors from '../config/colors'; const { height } = Dimensions.get('window'); const ControlledTooltip: React.FC = (props) => { const [open, setOpen] = React.useState(false); return ( { setOpen(true); }} onClose={() => { setOpen(false); }} {...props} /> ); }; const TooltipComponent: React.FC = () => { return ( <>
no caret!} withPointer={false} > without caret Tooltip info goes here} width={200} backgroundColor={colors.primary} > Press me Tooltip info goes here too. Find tooltip everywhere } containerStyle={{ width: 200, height: 60 }} > Press me { 'Some big text full of important stuff for the super duper user that our design has been created for' } } > HUGE Tooltip info goes here} > More attention Tooltip info goes here} > I'm different Tooltip info goes here} > Press me ); }; const styles = StyleSheet.create({ view: { display: 'flex', flexDirection: 'row', justifyContent: 'space-evenly', marginVertical: 50, }, }); export default TooltipComponent;