- NavigationScreenProps
, navigationOptions
.. :
interface Props extends NavigationScreenProps {
someProp: string;
anotherProp: string;
}
export const SomeGreatScreen: NavigationScreenComponent<NavigationParams, {}, Props> = ({
someProp,
anotherProp,
}) => {
...
};
, NavigationScreenComponent<Props>
{ someProp, anotherProp }
, , NavigationScreenComponent<NavigationParams, {}, Props>
. -, :
export type NavigationScreenComponent<
Params = NavigationParams,
Options = {},
Props = {}
> = React.ComponentType<NavigationScreenProps<Params, Options> & Props> & {
navigationOptions?: NavigationScreenConfig<Options>;
};
from react-navigation.d.ts