react-native-datepicker
react-native-datepicker copied to clipboard
Error on iPhone Real Device, working fine on simulator
Issue
I faced an Error on iPhone Real Device, working fine on simulator I got this Exception thrown while executing UI block: *** -[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 1]
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke
RCTUIManager.m:1107
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.540
__RCTExecuteOnMainQueue_block_invoke
Expected Behavior
as shown on simulator
Code
<DatePicker style={styles.dateCom} date={this.state.form.dateOfBirth} mode="date" placeholder="Tanggal Lahir" format="DD/MM/YYYY" confirmBtnText="Konfirmasi" cancelBtnText="Batal" customStyles={styles.datepicker} onDateChange={(date) => {this.onChangeText('dateOfBirth', date)}} />
datepicker: { dateIcon: { position: 'absolute', right: 10, top: 4, marginLeft: 7, }, dateInput: { backgroundColor: '#f7f7f7', color: '#4a4a4a', borderWidth: 0, borderRadius: 5, alignText: 'left', height: 50, } }, dateCom: { left: 0, width: width*0.89, marginTop: 10, marginBottom: 20, },
Environment
react-native -v: 0.57node -v: 8.11.1npm -v: 5.6.0yarn --version: 1.6.0target platform: iOSoperating system: MacOS
I am using:
RN 0.57.8, RNDP: 1.7.2, iOS 11, buildTarget: iOS 11
and it is working without any issue.
I am facing this issue too. I don't get any exception, but the date picker is not visible. It works find on simulator and android.
I have the same problem when I pass props "locale" in the component. It works fine when I delete that props