我目前正在学习react-native。
我在这个项目中主要使用- react-navgation,FlatList并react-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)