-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable swipe to reply for message bubble
- Loading branch information
Showing
7 changed files
with
938 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
package/src/components/Message/MessageSimple/MessageSwipeLeftContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { StyleSheet, View } from 'react-native'; | ||
|
||
import { useTheme } from '../../../contexts/themeContext/ThemeContext'; | ||
import { CurveLineLeftUp } from '../../../icons'; | ||
|
||
export const MessageSwipeLeftContent = () => { | ||
const { | ||
theme: { | ||
colors: { grey }, | ||
messageSimple: { | ||
swipeLeftContent: { container }, | ||
}, | ||
}, | ||
} = useTheme(); | ||
return ( | ||
<View style={[styles.container, container]}> | ||
<CurveLineLeftUp pathFill={grey} /> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
justifyContent: 'center', | ||
paddingHorizontal: 16, | ||
}, | ||
}); |
Oops, something went wrong.