Skip to content

Commit 3400f00

Browse files
committed
fix: remove alignSelf: 'center' from the Animated container view
Fixes calintamas#282
1 parent 6b43bd1 commit 3400f00

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/AnimatedContainer.styles.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { StyleSheet } from 'react-native';
33
export const styles = StyleSheet.create({
44
base: {
55
position: 'absolute',
6+
left: 0,
7+
right: 0,
68
alignItems: 'center',
7-
justifyContent: 'center',
8-
alignSelf: 'center'
9+
justifyContent: 'center'
910
},
1011
top: {
1112
top: 0

src/components/__tests__/AnimatedContainer.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ const setup = (props?: Omit<Partial<AnimatedContainerProps>, 'children'>) => {
4444

4545
const defaultStyles: ViewStyle = {
4646
position: 'absolute',
47+
left: 0,
48+
right: 0,
4749
alignItems: 'center',
4850
justifyContent: 'center',
49-
alignSelf: 'center',
5051
top: 0
5152
};
5253

0 commit comments

Comments
 (0)