我是 ReactNative 的新手,不确定这里发生了什么。
我想使用 ReactNavigation 库的 MaterialTopTabs https://reactnavigation.org/docs/material-top-tab-navigator\
添加其中一个属性不适用于 ios 但适用于 Android
<Tab.Navigator
screenOptions={{
tabBarScrollEnabled:true // <--
}}
>
给出以下错误:
No command found with name "scrollTo"
-[RCTUIManager dispatchViewManagerCommand:commandID:commandArgs:]
RCTUIManager.m:1132
__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