Created
August 27, 2022 17:09
-
-
Save andrew-levy/41619fd1558b4dbd1d9b300a9c3bb9be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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