trying reanimated 2

This commit is contained in:
austinried
2021-06-22 11:03:26 +09:00
parent 41d78f0d2f
commit 5e4578d8e8
7 changed files with 28 additions and 14 deletions

View File

@@ -9,8 +9,8 @@ const TopTabBar: React.FC<MaterialTopTabBarProps> = ({ state, descriptors }) =>
<View style={{
backgroundColor: colors.gradient.high,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-evenly',
alignItems: 'flex-start',
justifyContent: 'flex-start',
}}>
{state.routes.map((route, index) => {
const { options } = descriptors[route.key];

View File

@@ -57,7 +57,7 @@ const AlbumItem: React.FC<{ id: string } > = ({ id }) => {
// console.log(album.name);
// });
const size = 180;
const size = 125;
return (
<View style={{
@@ -66,7 +66,7 @@ const AlbumItem: React.FC<{ id: string } > = ({ id }) => {
marginVertical: 10,
// marginLeft: 6,
// width: size,
flex: 1/2,
flex: 1/3,
}}>
<AlbumArt
width={size}
@@ -136,7 +136,7 @@ const AlbumsList = () => {
keyExtractor={item => item}
onRefresh={refresh}
refreshing={refreshing}
numColumns={2}
numColumns={3}
removeClippedSubviews={false}
/>
</View>