Closed wacanam closed 1 year ago
Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.
I encourage you to check out the documentation. There are plenty of live examples with functioning icons. Here is one such example. If you still believe this is a bug please provide a working example and we'll be happy to look into it.
I have same problem. I use code from example but...
registerTranslation('en', en);
const GreyDateTimePicker = props => {
const {} = props;
const [date, setDate] = React.useState(undefined);
const [open, setOpen] = React.useState(false);
const onDismissSingle = React.useCallback(() => {
setOpen(false);
}, [setOpen]);
const onConfirmSingle = React.useCallback(
params => {
setOpen(false);
setDate(params.date);
},
[setOpen, setDate],
);
return (
<SafeAreaProvider>
<View style={{justifyContent: 'center', flex: 1, alignItems: 'center'}}>
<Button
onPress={() => setOpen(true)}
uppercase={false}
mode="outlined"
title={'Pick single date'} />
<DatePickerModal
locale="en"
mode="single"
visible={open}
onDismiss={onDismissSingle}
date={date}
onConfirm={onConfirmSingle}
/>
</View>
</SafeAreaProvider>
);
};
self-explanatory