Skip to content

Instantly share code, notes, and snippets.

@andrew-levy
Created August 27, 2022 17:09
Show Gist options
  • Save andrew-levy/41619fd1558b4dbd1d9b300a9c3bb9be to your computer and use it in GitHub Desktop.
Save andrew-levy/41619fd1558b4dbd1d9b300a9c3bb9be to your computer and use it in GitHub Desktop.
import { TextField, Toggle, VStack, useBinding } from "swiftui-react-native";
function BindingExample() {
const text = useBinding("");
const isOn = useBinding(false);
return (
<VStack>
<TextField text={text} placeholder="Search" />
<Toggle isOn={isOn} tintColor="systemBlue" />
</VStack>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment