wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.45k stars 706 forks source link

DateTimePicker dosen't work #2023

Closed yinshurman closed 2 years ago

yinshurman commented 2 years ago

DateTimePicker simply not work both in your RNUIlib_snack demo and simple code like this

<DateTimePicker title={'Select time'} placeholder={'Placeholder'} mode={'time'}/>

the Warning information is :

Possible Unhandled Promise  Rejection(id:7):
TypeError:Can't read property 'dismiss' of null
TypeError:Can't read property 'dismiss' of null

Related to

step to reproduce

  1. simply check your rnuilib_snack
  2. or just this simple code:

import {DateTimePicker} from 'react-native-ui-lib'; export default function ScreenC({navigation}) { return ( <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}> <DateTimePicker title={'Select time'} placeholder={'Placeholder'} mode={'time'}/> ); }


#### Expected behavior

hope it can work normally !

#### Actual behavior

can't select date and throw a warning i mentioned before .

## More Info

### Code snippet

import {DateTimePicker} from 'react-native-ui-lib'; export default function Screen() { return ( <View style={{flex: 1}}> <DateTimePicker title={'Select time'} placeholder={'Placeholder'} mode={'time'}/> ); }



### Screenshots/Video

<!--
If applicable, add screenshots or a video to help explain your problem.
-->

### Environment

<!--
Fill in your RNUILib and React Native versions below.

List other libraries if relevant.
-->

- React Native: 0.68.1
- React Native UI Lib: 6.14.1

### Affected platforms

- [x] Android
- [ ] iOS
- [ ] Web
Inbal-Tish commented 2 years ago

@yinshurman Hi. I can't reproduce. It is working for me on our demo app on both iOS and Android. Can you add more details regarding the bug, like what exactly "doesn't work" and maybe add a video?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.