Skip to main content
Glama
checkbox.md1.14 kB
--- title: Checkbox description: A universal React component that provides basic checkbox functionality. sourceCodeUrl: https://github.com/expo/expo/tree/main/packages/expo-checkbox packageName: expo-checkbox platforms: ["android", "ios", "web"] --- `expo-checkbox` provides a basic `boolean` input element for all platforms. ## Installation ## Usage ```tsx const [isChecked, setChecked] = useState(false); return ( <View style={styles.container}> <View style={styles.section}> <Text style={styles.paragraph}>Normal checkbox</Text> </View> <View style={styles.section}> <Text style={styles.paragraph}>Custom colored checkbox</Text> </View> <View style={styles.section}> <Text style={styles.paragraph}>Disabled checkbox</Text> </View> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, marginHorizontal: 16, marginVertical: 32, }, section: { flexDirection: 'row', alignItems: 'center', }, paragraph: { fontSize: 15, }, checkbox: { margin: 8, }, }); ``` ## API ```js ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jaksm/expo-docs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server