NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

TypeError: Cannot read property 'value' of undefined

Open CliveTeow opened this issue 9 years ago • 5 comments

react-native, react and native-base version

react-native: 0.45.1 react: [email protected] native-base: 2.1.5

Expected behaviour

Everything working fine.

Actual behaviour

There are some errors from native base.

Steps to reproduce (code snippet or screenshot)

After clicked a button/ radio, will show the error

Screenshot of emulator/device

screen shot 2017-06-22 at 7 05 52 pm

TypeError: Cannot read property 'value' of undefined at Item.componentDidMount (Item.js:23) at ReactCompositeComponent.js:377 at measureLifeCyclePerf (ReactCompositeComponent.js:63) at ReactCompositeComponent.js:376 at CallbackQueue.notifyAll (CallbackQueue.js:75) at ReactNativeReconcileTransaction.close (ReactNativeReconcileTransaction.js:36) at ReactNativeReconcileTransaction.closeAll (Transaction.js:223) at ReactNativeReconcileTransaction.perform (Transaction.js:165) at ReactUpdatesFlushTransaction.perform (Transaction.js:152) at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:77)

Also trigger this error after the above error happened: screen shot 2017-06-22 at 7 12 21 pm

In Android, have this error as well(while showing TypeError: Cannot read property 'value' of undefined): screen shot 2017-06-22 at 7 38 33 pm

Is the bug present in both ios and android or in any one of them?

Both

Any other additional info which would help us debug the issue quicker.

CliveTeow avatar Jun 22 '17 11:06 CliveTeow

I am having exactly same error with the same package version for react, react native and native base.

@CliveTeow have you found any solutions for this?

dylannlaw avatar Jun 26 '17 05:06 dylannlaw

I had the same issue when I imported and wrapped my Picker component with Item. I downgraded my package to native-base: 2.1.4 and its working again. This isn't the ideal resolution and looking forward to an actual fix for this.

buzzswarbrick avatar Jun 26 '17 10:06 buzzswarbrick

@buzzswarbrick there is actually a pull request that fixed this issue. Let's wait for a new release. https://github.com/GeekyAnts/NativeBase/pull/938

dylannlaw avatar Jun 26 '17 10:06 dylannlaw

I have the same issue with the same versions, but it happens even after I downgrade nativebase to 2.1.4. I also can't get the temporary fix in Items.js to actually get used in the bundle.

kitsune7 avatar Jun 29 '17 16:06 kitsune7

Fixed in the latest version 2.2.0

shivrajkumar avatar Jul 03 '17 05:07 shivrajkumar