我尝试在我的项目中使用shoutem,当我尝试使用@shoutem/animation 使我的屏幕在执行滚动列表之类的操作时看起来更好,但我遇到了问题。请在下面查看我的代码:
这是我的进口:
import React, { Component } from 'react';
import { Screen, Text, Image, Tile, Title, Subtitle, NavigationBar, View, ScrollView } from '@shoutem/ui';
import { ScrollDriver, } from '@shoutem/animation';
return (
<ScrollView.DriverProvider>
<Screen>
<NavigationBar
styleName='clear'
animationName="solidify"
title={restaurant.name}
share={{
title: restaurant.name,
link: restaurant.url,
}}
/>
<ScrollView>
<Image
styleName="large-portrait placeholder"
source={{ uri: restaurant.image.url }}
animationName="hero"
>
<Tile animationName="hero">
<Title>{restaurant.name}</Title>
<Subtitle>{restaurant.address}</Subtitle>
</Tile>
</Image>
<View
styleName="solid"
style={{
backgroundColor: 'white',
height: 700,
padding: 15,
}}
>
<Text>
Gaspar is a delightful French restaurant in
San Francisco\’s Financial District that is inspired by the romantic,
bustling Paris of old. Located near famed Union Square, our richly-designed
interiors make you feel as if you are truly in Paris and provide the perfect
setting for enjoying our exquisite classic and modern French fare such as Duck
Leg Confit and always popular Steak Frites. Gaspar offers two stories of dining
in addition to full bars both upstairs and downstairs and an exclusive room
reserved to hold the largest selection of Cognac in San Francisco.
In addition to our all day menu, we offer live jazz music on Saturdays.
</Text>
</View>
</ScrollView>
</Screen>
</ScrollView.DriverProvider>
);
请给我一些解决方案,非常感谢大家