d-a-n/react-native-multiple-choice

Not supported in 0.61.5 react native version as List view is deprecated.

vtrioremya opened this issue · 2 comments

Invariant Violation: ListView has been removed from React Native. See https://fb.me/nolistview for more information or use deprecated-react-native-listview.

This error is located at:
in MultipleChoice (at FeatureDevelopmentDetails.js:780)
in RCTView (at FeatureDevelopmentDetails.js:777)
in RCTView (at FeatureDevelopmentDetails.js:642)
in RCTView (at FeatureDevelopmentDetails.js:638)
in RCTScrollContentView (at ScrollView.js:1038)
in RCTScrollView (at ScrollView.js:1178)
in ScrollView (at FeatureDevelopmentDetails.js:636)
in RCTView (at FeatureDevelopmentDetails.js:613)
in FeatureDevelopmentDetails (created by SceneView)
in SceneView (at StackViewLayout.js:795)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewCard.js:69)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at screens.native.js:59)
in Screen (at StackViewCard.js:57)
in Card (at createPointerEventsContainer.js:27)
in Container (at StackViewLayout.js:860)
in RCTView (at screens.native.js:83)
in ScreenContainer (at StackViewLayout.js:311)
in RCTView (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewLayout.js:307)
in PanGestureHandler (at StackViewLayout.js:300)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:79)
in RCTView (at Transitioner.js:215)
in Transitioner (at StackView.js:22)
in StackView (created by Navigator)
in Navigator (at createKeyboardAwareNavigator.js:12)
in KeyboardAwareNavigator (at createAppContainer.js:388)
in NavigationContainer (at ReactComponents/index.ios.js:30)
in MyApp (at renderApplication.js:40)
in RCTView (at AppContainer.js:101)
in RCTView (at AppContainer.js:119)
in AppContainer (at renderApplication.js:39)

Object.defineProperty$argument_2.get
react-native-implementation.js:359:8
MultipleChoice#constructor
index.js:43:19
renderRoot
[native code]:0
runRootCallback
[native code]:0
unstable_runWithPriority
scheduler.development.js:643:23
Component.prototype.setState
react.development.js:325:31
componentDidMount
FeatureDevelopmentDetails.js:245:21
tryCatch
runtime.js:45:44
invoke
runtime.js:271:30
tryCatch
runtime.js:45:44
invoke
runtime.js:135:28
Promise.resolve.then$argument_0
runtime.js:145:19
tryCallOne
core.js:37:14
setImmediate$argument_0
core.js:123:25
_callTimer
JSTimers.js:146:14
_callImmediatesPass
JSTimers.js:194:17
callImmediates
JSTimers.js:458:30
callImmediates
[native code]:0
flushedQueue
[native code]:0
invokeCallbackAndReturnFlushedQueue
[native code]:0
Can you please upgrade this package by using Flatlist please?

Please help!

I've fixed it in my own repository. You can use my version, or you can see what I've done and make a PR for this branch. My one is a little different as it has been modified to primarily deal with list of objects.

My one can be found below:
https://github.com/somoso/react-native-multiple-choice