Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: fix crop of startup screen animation #2137

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,059 changes: 528 additions & 531 deletions components/LightningLoadingPattern.tsx

Large diffs are not rendered by default.

27 changes: 12 additions & 15 deletions components/LoadingColumns.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
import * as React from 'react';
import { Dimensions, View } from 'react-native';
import { Dimensions } from 'react-native';
import Lottie from 'lottie-react-native';
import { themeColor } from '../utils/ThemeUtils';

const loader = require('../assets/images/Lottie/columns.json');

function LoadingColumns() {
return (
<View
<Lottie
source={loader}
autoPlay
colorFilters={[
{
keypath: 'Layer 14 Outlines',
color: themeColor('highlight')
}
]}
resizeMode="contain"
style={{
position: 'absolute',
alignSelf: 'center',
height: Dimensions.get('window').height * 2,
width: Dimensions.get('window').width * 2.3
}}
>
<Lottie
source={loader}
autoPlay
colorFilters={[
{
keypath: 'Layer 14 Outlines',
color: themeColor('highlight')
}
]}
resizeMode="contain"
/>
</View>
/>
);
}

Expand Down
26 changes: 11 additions & 15 deletions components/LoadingIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import { View } from 'react-native';
import Lottie from 'lottie-react-native';
import { themeColor } from '../utils/ThemeUtils';

Expand All @@ -13,25 +12,22 @@ function LoadingIndicator(props: LoadingIndicatorProps) {
const { size } = props;

return (
<View
<Lottie
source={loader}
autoPlay
loop
colorFilters={[
{
keypath: 'Comp 2',
color: themeColor('highlight')
}
]}
style={{
alignSelf: 'center',
width: size || 40,
height: size || 40
}}
>
<Lottie
source={loader}
autoPlay
loop
colorFilters={[
{
keypath: 'Comp 2',
color: themeColor('highlight')
}
]}
/>
</View>
/>
);
}

Expand Down
Loading
Loading