-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:(changing sending message icon when you're typing)
- Loading branch information
Showing
8 changed files
with
246 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ export const supabase = createClient(supabaseUrl, supabaseAnonKey, { | |
detectSessionInUrl: false, | ||
}, | ||
}); | ||
|
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,6 @@ | ||
export const sendIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<g id="Send"> | ||
<path id="Send_2" d="M15.8325 8.17463L10.109 13.9592L3.59944 9.88767C2.66675 9.30414 2.86077 7.88744 3.91572 7.57893L19.3712 3.05277C20.3373 2.76963 21.2326 3.67283 20.9456 4.642L16.3731 20.0868C16.0598 21.1432 14.6512 21.332 14.0732 20.3953L10.106 13.9602" stroke="#212121" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> | ||
</g> | ||
</svg> | ||
`; |
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,23 @@ | ||
import { TouchableOpacity, View } from "react-native"; | ||
import { SvgXml } from "react-native-svg"; | ||
import { supabase } from "@/app/supabase"; | ||
import { chatIcon } from "@/assets/icons/chat"; | ||
import { sendIcon } from "@/assets/icons/send"; | ||
|
||
interface Props { | ||
onPress: () => void; | ||
} | ||
|
||
export const SendMessageButton: React.FC<Props> = ({ onPress }) => { | ||
return ( | ||
<View className="relative ml-3 bottom-1"> | ||
<TouchableOpacity | ||
activeOpacity={0.8} | ||
className="bg-blue-500 p-4 rounded-full" | ||
onPress={onPress} | ||
> | ||
<SvgXml className="text-white" xml={sendIcon} width={24} height={24} /> | ||
</TouchableOpacity> | ||
</View> | ||
); | ||
}; |
Oops, something went wrong.