import Checkbox from 'expo-checkbox';
import * as React from 'react';
import { Platform, Text } from 'react-native';
import { Page, Section } from '../components/Page';
import { useResolvedValue } from '../utilities/useResolvedValue';
export default function CheckboxScreen() {
const [isAvailable] = useResolvedValue(Checkbox.isAvailableAsync);
const [value, setValue] = React.useState(true);
if (isAvailable === null) {
return (
Checking if checkbox is available on this platform...
);
}
if (isAvailable === false) {
return (
CheckBox is not available on this platform.
);
}
return (
{Platform.OS === 'web' && (
)}
);
}
CheckboxScreen.navigationOptions = {
title: 'Checkbox',
};