Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/reset"

Index

Functions

Functions

reset

  • reset(screen?: ScreenComponentClass, props?: undefined): void
  • reset<P, C>(screen: ScreenComponentClass<P>, props: C): void
  • Resets the stack.

    example
    screen/Main/Component.tsx ```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' }); } } `

    Parameters

    • Optional screen: ScreenComponentClass

      the screen to put at the bottom of the stack

    • Optional props: undefined

      the type checked properties for the screen

    Returns void

  • Type parameters

    • P

    • C: P

    Parameters

    • screen: ScreenComponentClass<P>
    • props: C

    Returns void