pinguinjkeke / react-native-wheel-datepicker

Android & iOS iOS-style Picker & DatePicker Components for ReactNative

Home Page:https://www.npmjs.com/package/react-native-wheel-datepicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"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'