Invariant Violation: scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures.\n at invariant (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:1450:26)\n at scrollToIndex (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:32211:34)\n at scrollToIndex (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:31389:38)\n at anonymous (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:122384:42)\n at commitHookEffectListMount (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:22443:37)\n at flushPassiveEffects (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:23548:46)\n at anonymous (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:23418:26
Use my post as an example.
Invariant Violation: scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures.\n at invariant (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:1450:26)\n at scrollToIndex (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:32211:34)\n at scrollToIndex (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:31389:38)\n at anonymous (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:122384:42)\n at commitHookEffectListMount (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:22443:37)\n at flushPassiveEffects (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:23548:46)\n at anonymous (\/Users\/steve228uk\/Library\/Developer\/Xcode\/DerivedData\/Bean-gywywfprrpnogucbdjxvbdjfggrp\/Build\/Intermediates.noindex\/ArchiveIntermediates\/Bean Release\/BuildProductsPath\/Release-iphoneos\/main.jsbundle:23418:26
Thank you, I will test on 14.3 later today.