react-native-datepicker icon indicating copy to clipboard operation
react-native-datepicker copied to clipboard

Error on iPhone Real Device, working fine on simulator

Open achimbaggins opened this issue 6 years ago • 3 comments

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 CFRunLoopRunSpecific GSEventRunModal UIApplicationMain main

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

  1. react-native -v: 0.57
  2. node -v: 8.11.1
  3. npm -v: 5.6.0
  4. yarn --version: 1.6.0
  5. target platform: iOS
  6. operating system: MacOS

achimbaggins avatar Jan 07 '19 08:01 achimbaggins

I am using:

RN 0.57.8, RNDP: 1.7.2, iOS 11, buildTarget: iOS 11

and it is working without any issue.

sorinfratila avatar Jan 23 '19 09:01 sorinfratila

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.

mouyleng avatar Feb 14 '19 08:02 mouyleng

I have the same problem when I pass props "locale" in the component. It works fine when I delete that props

ppangchn avatar Mar 15 '20 17:03 ppangchn