File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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() {
8281const 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} ) ;
Original file line number Diff line number Diff line change 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" : {
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 ,
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
Original file line number Diff line number Diff line change @@ -4,7 +4,13 @@ import { SafeAreaView } from 'react-native-safe-area-context';
44import { Ionicons } from '@expo/vector-icons' ;
55import { colors } from '../theme/colors' ;
66import { 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
915const API_URL = 'https://zappify-dz5a.vercel.app' ;
1016const 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' ,
You can’t perform that action at this time.
0 commit comments