MCPcopy Create free account
hub / github.com/callstack/react-native-paper / Test

Function Test

src/react-navigation/__tests__/index.test.tsx:14–23  ·  view source on GitHub ↗
({
    route,
    navigation,
  }: MaterialBottomTabScreenProps<ParamListBase>)

Source from the content-addressed store, hash-verified

12
13it('renders a material bottom tab navigator with screens', async () => {
14 const Test = ({
15 route,
16 navigation,
17 }: MaterialBottomTabScreenProps<ParamListBase>) => (
18 <View>
19 <Text>Screen {route.name}</Text>
20 <Button onPress={() => navigation.navigate('A')} title="Go to A" />
21 <Button onPress={() => navigation.navigate('B')} title="Go to B" />
22 </View>
23 );
24
25 const Tab = createMaterialBottomTabNavigator();
26

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…