Skip to content

Commit

Permalink
Fix rounded volunteer opportunity border on Android (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
KingPleather authored Aug 25, 2024
1 parent 219efa5 commit 4bb2939
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/VolunteerOpportunity.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { View, Text, StyleSheet, Image, Pressable } from "react-native";
import {
View,
Text,
StyleSheet,
Image,
Pressable,
Platform,
} from "react-native";
import MaterialCommunityIcons from "@expo/vector-icons/MaterialCommunityIcons";
import SimpleLineIcons from "@expo/vector-icons/SimpleLineIcons";
import FontAwesome from "@expo/vector-icons/FontAwesome";
Expand Down Expand Up @@ -77,8 +84,8 @@ const styles = StyleSheet.create({
alignItems: "center",
justifyContent: "space-between",
backgroundColor: "#f5f5f5",
borderTopRightRadius: 50,
borderBottomRightRadius: 50,
borderTopRightRadius: Platform.OS == "ios" ? 50 : 300,
borderBottomRightRadius: Platform.OS == "ios" ? 50 : 300,
borderBottomLeftRadius: 1000,
borderTopLeftRadius: 1000,
borderColor: "#e0e0e0",
Expand Down

0 comments on commit 4bb2939

Please sign in to comment.