import { Div, Input, P } from "react-with-native"; import UI from "react-with-native-ui"; import { CodeLink } from "../components"; import useStore from "../store"; import { RWNPage } from "../types"; const Page: RWNPage = () => { const [name, setName] = useStore("name"); const [email, setEmail] = useStore("email"); return (

Welcome to this demo. This demo runs on React with Next.js as well as on React Native with Expo.

Your name:

setName(e.target.value)} native={{ onChangeText: setName }} className={UI.input} />

Your email:

setEmail(e.target.value)} native={{ onChangeText: setName }} className={UI.input} />
); }; Page.options = { title: "Home", }; export default Page;