Skip to content

Commit b51d340

Browse files
committed
fix: update splash screen logo
1 parent 8f96c72 commit b51d340

4 files changed

Lines changed: 24 additions & 14 deletions

File tree

mobile/App.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ export default function App() {
4848

4949
if (showSplash) {
5050
return (
51-
<View style={{ flex: 1, backgroundColor: '#FF3D00' }}>
52-
<StatusBar backgroundColor="#FF3D00" barStyle="light-content" />
51+
<View style={{ flex: 1, backgroundColor: '#000000' }}>
52+
<StatusBar backgroundColor="#000000" barStyle="light-content" />
5353
<Animated.View style={[styles.splashContainer, { opacity: fadeAnim }]}>
5454
<Animated.View style={{ transform: [{ scale: scaleAnim }], alignItems: 'center' }}>
55-
<Image source={require('./assets/logo.png')} style={styles.splashLogoImg} />
56-
<Text style={styles.splashSubtitle}>Premium Shoe Store</Text>
55+
<Image source={require('./assets/logo1.png')} style={styles.splashLogoImg} />
5756
</Animated.View>
5857
</Animated.View>
5958
</View>
@@ -82,13 +81,13 @@ export default function App() {
8281
const styles = StyleSheet.create({
8382
splashContainer: {
8483
flex: 1,
85-
backgroundColor: '#FF3D00',
84+
backgroundColor: '#000000',
8685
justifyContent: 'center',
8786
alignItems: 'center',
8887
},
8988
splashLogoImg: {
90-
width: 280,
91-
height: 280,
89+
width: 380,
90+
height: 220,
9291
resizeMode: 'contain',
9392
},
9493
splashSubtitle: {
@@ -98,7 +97,7 @@ const styles = StyleSheet.create({
9897
textTransform: 'uppercase',
9998
letterSpacing: 6,
10099
textAlign: 'center',
101-
marginTop: 8,
100+
marginTop: 16,
102101
fontWeight: '700',
103102
},
104103
});

mobile/app.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"slug": "zappify",
55
"version": "1.0.0",
66
"orientation": "portrait",
7-
"icon": "./assets/logo.png",
7+
"icon": "./assets/logo1.png",
88
"userInterfaceStyle": "light",
99
"newArchEnabled": true,
1010
"updates": {
@@ -16,9 +16,9 @@
1616
"policy": "appVersion"
1717
},
1818
"splash": {
19-
"image": "./assets/logo.png",
19+
"image": "./assets/logo1.png",
2020
"resizeMode": "contain",
21-
"backgroundColor": "#FF3D00"
21+
"backgroundColor": "#000000"
2222
},
2323
"ios": {
2424
"supportsTablet": true,
@@ -29,8 +29,8 @@
2929
},
3030
"android": {
3131
"adaptiveIcon": {
32-
"foregroundImage": "./assets/logo.png",
33-
"backgroundColor": "#FF3D00"
32+
"foregroundImage": "./assets/logo1.png",
33+
"backgroundColor": "#000000"
3434
},
3535
"package": "com.zappify.app",
3636
"edgeToEdgeEnabled": true

mobile/assets/logo1.png

35.9 KB
Loading

mobile/src/screens/CheckoutScreen.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import { SafeAreaView } from 'react-native-safe-area-context';
44
import { Ionicons } from '@expo/vector-icons';
55
import { colors } from '../theme/colors';
66
import { useApp } from '../context/AppContext';
7-
import RazorpayCheckout from 'react-native-razorpay';
7+
8+
let RazorpayCheckout = null;
9+
try {
10+
RazorpayCheckout = require('react-native-razorpay').default;
11+
} catch (e) {
12+
RazorpayCheckout = null;
13+
}
814

915
const API_URL = 'https://zappify-dz5a.vercel.app';
1016
const RAZORPAY_KEY_ID = 'rzp_test_SZtLthHdKYuLeQ';
@@ -30,6 +36,11 @@ export default function CheckoutScreen({ navigation }) {
3036
setDone(true);
3137
return;
3238
}
39+
if (!RazorpayCheckout) {
40+
Alert.alert('Not Available', 'Payment via card/UPI requires the full app build. Please use Cash on Delivery.');
41+
return;
42+
}
43+
3344
try {
3445
const res = await fetch(`${API_URL}/api/payment/create-order`, {
3546
method: 'POST',

0 commit comments

Comments
 (0)