react-native-wheel-picker icon indicating copy to clipboard operation
react-native-wheel-picker copied to clipboard

Error while updating property 'data' of a view managed by: WheelCurvedPicker

Open alexsbobylev opened this issue 8 years ago • 7 comments

Hi! Thanks for you work!

Don't work on Android, iOS work ok.

img_2017-01-13 16 43 39

State:

this.state = {
      day: 'today',
      time: '03:00',
      timeItems: ['00:00', '00:15', '01:15']
    }

Render code:

     <Picker
          style = { styles.popupPicker }
          selectedValue = { this.state.time }
          onValueChange={ (time) => this.setState({ time }) }>
          { this.state.timeItems.map((value, i) => (
             <Picker.Item label={ value } value={ value } key={ value } />
            )) }
      </Picker>

Help please!

alexsbobylev avatar Jan 13 '17 13:01 alexsbobylev

I meet same condition.Now it worked.Cause type of 'label' need string,'value' need number;

Caused by: com.facebook.react.bridge.UnexpectedNativeTypeException: TypeError: expected dynamic type int64', but had type string'

wooter-s avatar Jan 20 '17 02:01 wooter-s

@alexsbobylev Invariant Violation: Native component for "WheelCurvedPicker" does not exist. When I'm rendering Picker component

yogeshR5 avatar Feb 01 '18 11:02 yogeshR5

@alexsbobylev what i have to do now??

yogeshR5 avatar Feb 01 '18 11:02 yogeshR5

@yogeshR5 what's your solution about that?

roofiah avatar Feb 20 '18 14:02 roofiah

@roofiah try this link definitely helpful to you. https://www.npmjs.com/package/react-native-wheel-picker

yogeshR5 avatar Feb 22 '18 07:02 yogeshR5

try this one https://www.npmjs.com/settings/treenewbie/packages

ufolux avatar Aug 09 '18 05:08 ufolux

i was having the same issue with it and I resolved it by casting the value parameter to float like: value={parseFloat(value)} and it worked

SiddharthChoudhary avatar Dec 05 '18 05:12 SiddharthChoudhary