Skip to content

Commit bc9b9d5

Browse files
committed
Fix animation
1 parent f9fe7ff commit bc9b9d5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

app/containers/MediaCallHeader/MediaCallHeader.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ const MediaCallHeader = () => {
3434

3535
const animatedStyle = useAnimatedStyle(() => ({
3636
opacity: withTiming(shouldHide ? 0 : 1, { duration: CONTROLS_ANIMATION_DURATION }),
37-
transform: [{ translateY: withTiming(shouldHide ? -100 : 0, { duration: CONTROLS_ANIMATION_DURATION }) }]
37+
transform: [
38+
{
39+
translateY: withTiming(shouldHide ? -100 : 0, {
40+
duration: CONTROLS_ANIMATION_DURATION
41+
})
42+
}
43+
]
3844
}));
3945

4046
const defaultHeaderStyle = {

app/lib/services/voip/MediaSessionInstance.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jest.mock('react-native-webrtc', () => ({
4747
mediaDevices: { getUserMedia: jest.fn() }
4848
}));
4949

50-
jest.mock('react-native-callkeep', () => ({}));
51-
5250
jest.mock('react-native-device-info', () => ({
5351
getUniqueId: jest.fn(() => 'test-device-id'),
5452
getUniqueIdSync: jest.fn(() => 'test-device-id')

app/lib/services/voip/useCallStore.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ interface CallStoreState {
6868
isSpeakerOn: boolean;
6969
callStartTime: number | null;
7070
focused: boolean;
71-
/** Zustand-driven for Call UI animations (subscribers re-render → `useAnimatedStyle`); see `decisions/call-view-controls-coderabbit.md`. */
7271
controlsVisible: boolean;
7372
dialpadValue: string;
7473

0 commit comments

Comments
 (0)