Open WEI4D opened 3 years ago
@gaokaikai
您需要首先设置为true 然后false
This error is located at: in RNRefreshHeader (at react-native-smart-refresh/index.js:62) in SmartRefreshHeader (at RefreshAnimateHeader.js:51) in RNSmartRefreshView (at react-native-smart-refresh/index.js:47) in SmartRefresh (at RefreshAnimateHeader.js:46) in RefreshAnimateHeader (at ProductList.tsx:476) in RCTScrollView (at ScrollView.js:1171) in ScrollView (at VirtualizedList.js:1280) in VirtualizedList (at VirtualizedSectionList.js:216) in VirtualizedSectionList (at SectionList.js:246) in SectionList (at AnimatedSectionList.js:23) in ForwardRef (at createAnimatedComponent.js:144) in AnimatedComponent (at createAnimatedComponent.js:194) in ForwardRef(AnimatedComponentWrapper) (at ProductList.tsx:474) in RCTView (at ProductList.tsx:461) in ProductList (at HomePageTabScreen.tsx:567) in RCTView (at HomePageTabScreen.tsx:565) in HomePageProvider (at HomePageTabScreen.tsx:564) in HomePageTabScreen (created by Connect(HomePageTabScreen)) in Connect(HomePageTabScreen) (at NewTabsScreen.js:843) in IF (at NewTabsScreen.js:897) in RCTView (at NewTabsScreen.js:896) in RCTView (at NewTabsScreen.js:894) in RCTView (at NewTabsScreen.js:972) in RCTView (at NewTabsScreen.js:968) in RCTView (at NewTabsScreen.js:967) in TabsScreen (created by Connect(TabsScreen)) in Connect(TabsScreen) (at withNavigation.js:117) in RCTView (at withNavigation.js:116) in Provider (at withNavigation.js:115) in withNavigation(Connect(TabsScreen)) (at renderApplication.js:45) in RCTView (at AppContainer.js:109) in RCTView (at AppContainer.js:135) in AppContainer (at renderApplication.js:39) 2021-08-18 12:54:55.007 [error][tid:com.facebook.react.JavaScript] '%c[object Object]', 'color: red', '\nTabsScreen@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:120484:36\nConnect(TabsScreen)@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:123260:43\nRCTView\nProvider@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:122781:21\nwithNavigation(Connect(TabsScreen))@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:823099:38\nRCTView\nRCTView\nAppContainer@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:82848:22' 2021-08-18 12:54:55.030 [warn][tid:com.facebook.react.JavaScript] 'Warning: %s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.', 'TabsScreen', '\nTabsScreen@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:120484:36\nConnect(TabsScreen)@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:123260:43\nRCTView\nProvider@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:122781:21\nwithNavigation(Connect(TabsScreen))@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:823099:38\nRCTView\nRCTView\nAppContainer@http://10.118.34.47:8081/index.bundle?platform=ios&dev=true&minify=false:82848:22' 2021-08-18 12:54:55.101 [error][tid:com.facebook.react.JavaScript] Invariant Violation: requireNativeComponent: "RNRefreshHeader" was not found in the UIManager.
这是来自QQ邮箱的假期自动回复邮件。 您好,您的邮件已收到,我会尽快跟你回复的。谢谢!
我在数据加载完后,改变了isRefreshing的状态,但是refreshController还是一直处于加载的状态。如何在加载完数据后隐藏它呢? 这是我的代码片段: 代码片段