import { StyleSheet, Text, View, TouchableOpacity} from 'react-native';
import {useRef} from 'react';
import CalendarStrip from 'react-native-calendar-strip';
export default function App() {
const one = useRef(null);
const two = useRef(null);
function q()
{
one.current.getPreviousWeek();
two.current.getPreviousWeek();
}
return (
<View>
<CalendarStrip
ref={one}
style={{height:150, paddingTop: 20, paddingBottom: 10}}
/>
<CalendarStrip
ref={two}
style={{height:150, paddingTop: 20, paddingBottom: 10}}
/>
<TouchableOpacity onPress={()=>q()}>
<Text>
Click Me
</Text>
</TouchableOpacity>
</View>
);
}