"CustomDatePicker" does not exist
shenhuniurou opened this issue · comments
Hi,
I installed "react-native-custom-datepicker-ios" and this lib, and in my js page,
import {registerCustomDatePickerIOS} from 'react-native-wheel-datepicker';
import CustomDatePickerIOS from 'react-native-custom-datepicker-ios';
const DatePicker = registerCustomDatePickerIOS(CustomDatePickerIOS);
<DatePicker
date={this.state.date}
mode="date"
textSize={36}
textColor='red'
onDateChange={date => this.setState({date})}
style={{width: '100%'}}
/>
the error tip is "Invariant Violation:Native component for 'CustomDatePicker' does not exist"
plz help me ,thx
I know why, you did not upload the .xcodeproj file in 'react-native-custom-datepicker-ios'