Skip to content

Commit

Permalink
fixxed android style buttons?
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleenaphan committed May 6, 2024
1 parent 94ad312 commit 2df33c2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState} from "react";
import { View, Text, Button, ScrollView, TouchableOpacity } from "react-native";
import { View, Text, Button, ScrollView, TouchableOpacity, Platform } from "react-native";
import { Image } from 'expo-image';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import Modal from "react-native-modal";
Expand Down Expand Up @@ -162,7 +162,7 @@ export const StorePage = () =>{
<Image source = {boughtItem.image} style = {storePopup.headItemImg}/>
<View style = {storePopup.buyBtn}>
<Button
color = 'white'
color = {Platform.OS === "android" ? "#568258" : "white"}
title = "Buy Item"
onPress = {async () =>{
//first checks to see if the user owns the item already
Expand Down Expand Up @@ -199,7 +199,7 @@ export const StorePage = () =>{
/>
</View>
<Button
color = 'black'
color = {Platform.OS === "android" ? "transparent" : "black"}
title = "Return to store page"
onPress = {toggleItemPopup}

Expand Down Expand Up @@ -319,7 +319,7 @@ export const StorePage = () =>{
<Image source = {boughtItem.image} style = {storePopup.bodyItemImg}/>
<View style = {storePopup.buyBtn}>
<Button
color = 'white'
color = {Platform.OS === "android" ? "#568258" : "white"}
title = "Buy Item"
onPress = {async () =>{
//first checks to see if the user owns the item already
Expand Down Expand Up @@ -355,7 +355,7 @@ export const StorePage = () =>{
/>
</View>
<Button
color = 'black'
color = {Platform.OS === "android" ? "transparent" : "black"}
title = "Return to store page"
onPress = {toggleItemPopup}
/>
Expand Down Expand Up @@ -469,7 +469,7 @@ export const StorePage = () =>{
<Image source = {boughtItem.image} style = {storePopup.lowerBodyItemImg}/>
<View style = {storePopup.buyBtn}>
<Button
color = 'white'
color = {Platform.OS === "android" ? "#568258" : "white"}
title = "Buy Item"
onPress = {async () =>{
//first checks to see if the user owns the item already
Expand Down Expand Up @@ -503,7 +503,8 @@ export const StorePage = () =>{
/>
</View>
<Button
color = 'black'
// color = 'black'
color = {Platform.OS === "android" ? "transparent" : "black"}
title = "Return to store page"
onPress = {toggleItemPopup}
/>
Expand Down

0 comments on commit 2df33c2

Please sign in to comment.