Skip to content

Commit

Permalink
wra Animated.View in TO
Browse files Browse the repository at this point in the history
  • Loading branch information
ramizackaryshamir committed Sep 24, 2024
1 parent 590ec99 commit e130676
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/components/Alarm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,26 @@ const Alarm = ({
<Text>Delete</Text>
</TouchableOpacity>
)}
<Animated.View {...panResponder.panHandlers} style={[pan.getLayout()]}>
<View style={styles.alarmContainer}>
<View style={styles.alarmContainerLeft}>
<View style={styles.alarmContainerLeftTop}>
<Text style={styles.alarmTextLeftTop}>{alarmWeekday}</Text>
<Text style={styles.alarmTextLeftTop}>{alarmDate}</Text>
<TouchableOpacity onPress={() => console.log('Pressed')}>
<Animated.View {...panResponder.panHandlers} style={[pan.getLayout()]}>
<View style={styles.alarmContainer}>
<View style={styles.alarmContainerLeft}>
<View style={styles.alarmContainerLeftTop}>
<Text style={styles.alarmTextLeftTop}>{alarmWeekday}</Text>
<Text style={styles.alarmTextLeftTop}>{alarmDate}</Text>
</View>
<View style={styles.alarmContainerLeftBottom}>
<Text style={styles.alarmTextLeftBottom}>{alarmName}</Text>
<Text style={styles.alarmTextLeftBottom}>{alarmRepeat}</Text>
</View>
</View>
<View style={styles.alarmContainerLeftBottom}>
<Text style={styles.alarmTextLeftBottom}>{alarmName}</Text>
<Text style={styles.alarmTextLeftBottom}>{alarmRepeat}</Text>
<View style={styles.alarmContainerRight}>
<Text style={styles.alarmTextRight}>{alarmTime}</Text>
<Switch onValueChange={onToggle} value={alarmIsEnabled} />
</View>
</View>
<View style={styles.alarmContainerRight}>
<Text style={styles.alarmTextRight}>{alarmTime}</Text>
<Switch onValueChange={onToggle} value={alarmIsEnabled} />
</View>
</View>
</Animated.View>
</Animated.View>
</TouchableOpacity>
</View>
);
};
Expand Down
1 change: 1 addition & 0 deletions src/components/hooks/useStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const useStyles = () => {
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
width: '100%',
},
alarmContainer: {
flexDirection: 'row',
Expand Down

0 comments on commit e130676

Please sign in to comment.