```ts
import * as React from 'react';
import { push } from '@ef-carbon/react-native-navigation';
import OtherScreen from '../OtherScreen';
export class MyScreen extends React.PureComponent {
private readonly navigateToNavigation = (): void => {
// This does type checked pushing of a new screen to the stack
reset(OtherScreen, { firstName: 'Joe', secondName: 'Bloggs' });
}
}
`
Resets the stack.
import OtherScreen from '../OtherScreen';
export class MyScreen extends React.PureComponent { private readonly navigateToNavigation = (): void => { // This does type checked pushing of a new screen to the stack reset(OtherScreen, { firstName: 'Joe', secondName: 'Bloggs' }); } }
`