小编Rag*_*ghu的帖子

无法解决“@react-native-community/masked-view

我正在使用 react native expo 37.0.3 版,每次运行应用程序时都会收到此错误`

Unable to resolve "@react-native-community/masked-view" from "node_modules\@react-navigation\stack\src\views\MaskedView.native.tsx"

Building JavaScript bundle: error`
Run Code Online (Sandbox Code Playgroud)

我不知道为什么会出现此错误

这是我手机屏幕上的错误截图

javascript react-native

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

类型错误:this.props.navigation.getParam 不是使用 ReactNative 传递参数时的函数

通过 getParam 方法访问参数时出现错误,如下所示。

    const source = this.props.navigation.getParam("source","0")
    const doFollow = this.props.navigation.getParam("doFollow","")
Run Code Online (Sandbox Code Playgroud)

我已经使用以下方法传递了参数

this.props.navigation.navigate('Details', {otherParam:"anything"})
Run Code Online (Sandbox Code Playgroud)

javascript react-native

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

标签 统计

javascript ×2

react-native ×2