-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from Crossbell-Box/develop
Develop
- Loading branch information
Showing
16 changed files
with
130 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": patch | ||
--- | ||
|
||
Added skeleton for carousel and optimized the display performance of details page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": minor | ||
--- | ||
|
||
Update app configuration with new host information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": patch | ||
--- | ||
|
||
Refactor logo animation size in SplashProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": minor | ||
--- | ||
|
||
Update host names in app configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import type { FC } from "react"; | ||
import React from "react"; | ||
import Animated, { FadeIn, FadeOut } from "react-native-reanimated"; | ||
|
||
import ContentLoader, { Rect } from "react-content-loader/native"; | ||
import { useWindowDimensions, YStack } from "tamagui"; | ||
|
||
export const Skeleton: FC<{ | ||
height: number | ||
}> = ({ | ||
height, | ||
}) => { | ||
const { width } = useWindowDimensions(); | ||
|
||
const top = 50; | ||
const itemHeight = height - 40; | ||
const itemWidth = width / 1.3; | ||
|
||
return ( | ||
<Animated.View | ||
style={[{ | ||
height, | ||
top, | ||
position: "absolute", | ||
width: "100%", | ||
}]} | ||
entering={FadeIn.duration(300)} | ||
exiting={FadeOut.duration(1000)} | ||
> | ||
<YStack height={height} alignItems={"flex-start"} justifyContent={"flex-start"}> | ||
<ContentLoader | ||
viewBox={`0 0 ${width} ${height}`} | ||
backgroundColor={"gray"} | ||
opacity="0.3" | ||
> | ||
<Rect x={-itemWidth * 0.4 / 1.4} y={itemHeight / 2 - itemHeight * 0.85 / 2} rx="15" ry="15" width={itemWidth * 0.4} height={itemHeight * 0.85} /> | ||
<Rect x={width / 2 - itemWidth / 2} y={0} rx="15" ry="15" width={itemWidth} height={itemHeight} /> | ||
<Rect x={width - itemWidth * 0.4 / 3.4} y={itemHeight / 2 - itemHeight * 0.85 / 2} rx="15" ry="15" width={itemWidth * 0.4} height={itemHeight * 0.85} /> | ||
</ContentLoader> | ||
</YStack> | ||
</Animated.View> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters