小编Aru*_*ngh的帖子

在 React-Native 中获取“TypeError: interpolate is not a function”

我目前正在学习react-native

我在这个项目中主要使用- react-navgationFlatListreact-native-magnus为UI。
接受一个对象数组,并使用 FlatList 为每个数组项返回卡片列表(来自 Magnus UI)。

导航结构是这样的? 图片链接

为了更好的可访问性,我附上了我的项目,希望它有帮助吗? https://wetransfer.com/downloads/4b8af09bde680e8e17bcc05a662e4ef820210604152955/6b3f64

在我的代码中,我被这个错误困住了

TypeError: interpolate is not a function. (In 'interpolate(this.progress, {
              inputRange: [PROGRESS_EPSILON, 1],
              outputRange: [0, 1]
            })', 'interpolate' is undefined)

This error is located at:
    in NavigationContainer (at App.js:13)
    in App (created by ExpoRoot)
    in ExpoRoot (at renderApplication.js:45)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:132)
    in AppContainer (at …
Run Code Online (Sandbox Code Playgroud)

javascript node.js npm reactjs react-native

5
推荐指数
4
解决办法
3722
查看次数

标签 统计

javascript ×1

node.js ×1

npm ×1

react-native ×1

reactjs ×1