import React, { useRef } from 'react'; import { SafeAreaView, View, Text } from 'react-native'; import CalendarDatePicker from './src/CalendarDatePicker'; const ExampleOne = () => { const calendarDatePicker = useRef(); const getSelectedDates = (selectedDates) => { console.log('hello', selectedDates) } return ( { calendarDatePicker.current.handleShow() }}>{'Show Picker'} ); }; export default ExampleOne;