How can we use the pop()
function in React Native Navigation?
onPress={() => navigation.pop('Home')}>
gives me a TypeScript error that
Property 'pop' does not exist on type 'NavigationProp<Record<string, object | undefined>, string, NavigationState, {}, {}>'.ts(2339