当默认模式打开时,我想模糊我的屏幕背景。
我找到了这个模糊库https://github.com/react-native-community/react-native-blur
有没有人做到了?
我没有在模态上找到只有背景颜色的解决方案。
谢谢
我正在用 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)