Skip to content

Commit

Permalink
fix: autoplay is not work for gif
Browse files Browse the repository at this point in the history
  • Loading branch information
liaoxuan committed Aug 26, 2024
1 parent 4d8e0d1 commit d314359
Show file tree
Hide file tree
Showing 6 changed files with 341 additions and 235 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "V2Fun",
"slug": "v2ex",
"version": "1.7.5",
"version": "1.7.6",
"scheme": "v2fun",
"jsEngine": "jsc",
"icon": "./assets/icon.png",
Expand All @@ -20,7 +20,7 @@
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.liaoliao666.v2ex",
"buildNumber": "1.7.5.5",
"buildNumber": "1.7.6.1",
"entitlements": {
"aps-environment": "development"
},
Expand Down
1 change: 1 addition & 0 deletions components/StyledImage/BaseImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export function BaseImage({
{...imageProps}
autoplay={isAnimating}
allowDownscaling={props.allowDownscaling ?? !isAnimating}
contentFit="none"
>
{isObject(result) &&
!isMiniImage &&
Expand Down
2 changes: 1 addition & 1 deletion navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function StackNavigator() {
<Stack.Screen
options={
isTablet
? undefined
? { fullScreenGestureEnabled: false }
: {
presentation: 'fullScreenModal',
...androidSlideFromBottomOptions,
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@
"cheerio": "^1.0.0-rc.12",
"color2k": "^2.0.3",
"dayjs": "^1.11.5",
"expo": "~51.0.14",
"expo": "~51.0.31",
"expo-blur": "~13.0.2",
"expo-build-properties": "~0.12.3",
"expo-build-properties": "~0.12.5",
"expo-clipboard": "~6.0.3",
"expo-constants": "~16.0.2",
"expo-device": "~6.0.2",
"expo-file-system": "~17.0.1",
"expo-image": "^1.12.10",
"expo-image-picker": "~15.0.5",
"expo-image": "~1.12.15",
"expo-image-picker": "~15.0.7",
"expo-linking": "~6.3.1",
"expo-navigation-bar": "~3.0.6",
"expo-navigation-bar": "~3.0.7",
"expo-sharing": "~12.0.1",
"expo-splash-screen": "~0.27.4",
"expo-status-bar": "~1.12.1",
"expo-updates": "^0.25.16",
"expo-updates": "~0.25.24",
"highlight.js": "^11.6.0",
"immer": "^10.0.3",
"jotai": "^1.12.0",
Expand All @@ -50,15 +50,15 @@
"react-dom": "18.2.0",
"react-error-boundary": "^3.1.4",
"react-hook-form": "^7.39.4",
"react-native": "0.74.2",
"react-native": "0.74.5",
"react-native-bouncy-checkbox": "^3.0.7",
"react-native-drag-sort": "^2.4.4",
"react-native-gesture-handler": "~2.16.1",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-pager-view": "6.3.0",
"react-native-reanimated": "~3.10.1",
"react-native-render-html": "^6.3.4",
"react-native-safe-area-context": "4.10.1",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
"react-native-svg": "15.2.0",
"react-native-tab-view": "^3.5.2",
Expand Down
2 changes: 1 addition & 1 deletion screens/LoginScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default function LoginScreen() {
)}
/>

{(Platform.OS === 'android' || dayjs().isAfter('2024-06-26 12:00')) && (
{(Platform.OS === 'android' || dayjs().isAfter('2024-08-28 12:00')) && (
<TouchableOpacity
style={tw`w-full mt-4 flex-row justify-center items-center h-[52px] px-8`}
onPress={() => {
Expand Down
Loading

0 comments on commit d314359

Please sign in to comment.