MCPcopy Create free account
hub / github.com/TanStack/ai / primitive

Function primitive

testing/react-native-smoke/scripts/react-native-runtime-stub.tsx:11–26  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

9}
10
11function primitive(tag: string) {
12 return function Primitive({
13 children,
14 onChangeText,
15 ...props
16 }: NativeViewProps) {
17 return createElement(tag, {
18 ...props,
19 onChange: onChangeText
20 ? (event: { target: { value: string } }) =>
21 onChangeText(event.target.value)
22 : undefined,
23 children,
24 })
25 }
26}
27
28export const Button = ({ title, onPress }: NativeViewProps) =>
29 createElement('button', { onClick: onPress, children: title })

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected