小编tho*_*ris的帖子

在 React Native 的默认模式中模糊

当默认模式打开时,我想模糊我的屏幕背景。

我找到了这个模糊库https://github.com/react-native-community/react-native-blur

有没有人做到了?

我没有在模态上找到只有背景颜色的解决方案。

谢谢

blur react-native

5
推荐指数
1
解决办法
1万
查看次数

导航时如何停止/取消 redux saga

我正在用 React Native 开发一个应用程序,我需要在屏幕之间导航时停止/取消 redux saga。我怎样才能做到这一点?

我需要这个,因为我想避免过渡时的滞后。您可以观看视频以更好地理解我的观点https://streamable.com/45qsa

我的代码如下。

MindfulnessScreen.js

class MindFulness extends Component {


  componentDidMount() {
    this.props.dispatch(getMindFulness());
    this.props.dispatch(toggleBottomBar(true));
  }


  render() {
    const { isFetchingData, mindfulnessData, isLoggedIn, userType } = this.props;
    const header = mindfulnessData.header;
    const subHeader = mindfulnessData.subheader;
    const imageBanner = FILES_URL + mindfulnessData.image_banner;
    const mindFulnessDatas = mindfulnessData.children;
    return (
      <View style={{ flex: 1, backgroundColor: '#1F1F20' }}>
        {isFetchingData && <LoadingIndicator />}
        {/* <BottomBar screen={'MindFulness'} navigation={this.props.navigation} /> */}
        <ScrollView style={{ flexGrow: 1, marginBottom: 35 }}>
          {!isFetchingData && <FastImage
            style={{
              width: …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native redux redux-saga react-redux

1
推荐指数
1
解决办法
3848
查看次数

标签 统计

react-native ×2

blur ×1

react-redux ×1

reactjs ×1

redux ×1

redux-saga ×1