MCPcopy Create free account
hub / github.com/ajsmth/rn-tools / HeaderExample

Function HeaderExample

example/src/navigation-examples/header.tsx:5–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { Button, View, TextInput, Text } from "react-native";
4
5export function HeaderExample() {
6 return (
7 <View>
8 <Button
9 title="Push screen with header"
10 onPress={() => navigation.stack.push(<MyScreenWithHeader />)}
11 />
12 </View>
13 );
14}
15
16function MyScreenWithHeader() {
17 let [title, setTitle] = React.useState("");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected