marcocesarato/react-native-big-list

Add refreshcontrol error

weinixuehao opened this issue · 0 comments

        return <BigList
            data={listViewModel.data}
            style={{ flex: 1, backgroundColor: '#EEF0F4' }}
            renderItem={_renderRow}
            refreshing={listViewModel.loading}
            refreshControl={
                <RefreshControl 
                    onRefresh={() => {
                        console.log("====")
                    }}
                />
            }
        />
Argument 1 (BOOL) of RefreshControlManager.setNativeRefreshing must not be null

RCTLogArgumentError(RCTModuleMethod*, unsigned long, objc_object*, char const*)
    RCTModuleMethod.mm:67
__41-[RCTModuleMethod processMethodSignature]_block_invoke.164
-[RCTModuleMethod invokeWithBridge:module:arguments:]
-[RCTUIManager dispatchViewManagerCommand:commandID:commandArgs:]
__invoking___
-[NSInvocation invoke]
-[NSInvocation invokeWithTarget:]
-[RCTModuleMethod invokeWithBridge:module:arguments:]
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread