Skip to content

Commit

Permalink
fix: removed os based padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Supsource committed Dec 31, 2024
1 parent 6571f09 commit 69ea2a7
Show file tree
Hide file tree
Showing 23 changed files with 17 additions and 24 deletions.
2 changes: 1 addition & 1 deletion screens/BookScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const BookScreen = () => {
}, []);

return (
<SafeAreaView style={{ flex: 1, backgroundColor: '#f5f5f5', paddingTop: Platform.OS === 'android' ? 35 : 0 }}>
<SafeAreaView style={{ flex: 1, backgroundColor: '#f5f5f5',}}>
<View
style={{
flexDirection: 'row',
Expand Down
1 change: 0 additions & 1 deletion screens/CreateActivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ const CreateActivity = () => {
style={{
flex: 1,
backgroundColor: 'white',
paddingTop: Platform.OS === 'android' ? 35 : 0,
}}>
<ScrollView>
<View style={{marginHorizontal: 10}}>
Expand Down
2 changes: 1 addition & 1 deletion screens/GameSetUpScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const GameSetUpScreen = () => {

return (
<>
<SafeAreaView style={{paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView>
<ScrollView>
<View
style={{
Expand Down
3 changes: 1 addition & 2 deletions screens/HomeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
import {jwtDecode} from 'jwt-decode';
import 'core-js/stable/atob';
import axios from 'axios';
import {useRef} from 'react';
import {AuthContext} from '../AuthContext';

const HomeScreen = () => {
Expand Down Expand Up @@ -143,7 +142,7 @@ const HomeScreen = () => {
console.log('user', upcomingGames?.length);

return (
<ScrollView style={{flex: 1, backgroundColor: '#F8F8F8', paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<ScrollView style={{flex: 1, backgroundColor: '#F8F8F8',}}>
<View
style={{
padding: 13,
Expand Down
2 changes: 1 addition & 1 deletion screens/LoginScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const LoginScreen = () => {
});
};
return (
<SafeAreaView style={{flex: 1, backgroundColor: 'white', paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView style={{flex: 1, backgroundColor: 'white', }}>
<View style={{padding: 10, alignItems: 'center'}}>
<KeyboardAvoidingView>
<View
Expand Down
2 changes: 1 addition & 1 deletion screens/ManageRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import {

console.log('dfdfdfd', route?.params);
return (
<SafeAreaView style={{paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView>
<View style={{padding: 12, backgroundColor: '#223536'}}>
<View
style={{
Expand Down
2 changes: 1 addition & 1 deletion screens/NameScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const NameScreen = () => {
};
return (
<>
<SafeAreaView style={{flex: 1, backgroundColor: 'white', paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView style={{flex: 1, backgroundColor: 'white',}}>
<View style={{marginHorizontal: 10}}>
<Ionicons
onPress={() => navigation.goBack()}
Expand Down
2 changes: 1 addition & 1 deletion screens/OtpScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const OtpScreen = () => {
}
};
return (
<SafeAreaView style={{flex: 1, backgroundColor: 'white', paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView style={{flex: 1, backgroundColor: 'white',}}>
<View style={{padding: 15}}>
<Text style={styles.title}>Enter OTP</Text>
<View style={styles.otpContainer}>
Expand Down
2 changes: 1 addition & 1 deletion screens/PasswordScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PasswordScreen = () => {
navigation.navigate('Name')
}
return (
<SafeAreaView style={{flex: 1, backgroundColor: 'white', paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView style={{flex: 1, backgroundColor: 'white'}}>
<View style={{marginTop: 90, marginHorizontal: 20}}>
<View style={{flexDirection: 'row', alignItems: 'center'}}>
<View
Expand Down
2 changes: 1 addition & 1 deletion screens/PaymentScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const PaymentScreen = () => {
};
return (
<>
<ScrollView style={{marginTop:50, paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<ScrollView style={{marginTop:50}}>
<View style={{ padding: 15 }}>
<Text style={{ fontSize: 23, fontWeight: "500", color: "green" }}>
{route.params.selectedSport}
Expand Down
2 changes: 1 addition & 1 deletion screens/PlayScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const PlayScreen = () => {
}
};
return (
<SafeAreaView style={{paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView>
<View style={{padding: 12, backgroundColor: '#223537'}}>
<View
style={{
Expand Down
2 changes: 1 addition & 1 deletion screens/PlayersScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Entypo from 'react-native-vector-icons/Entypo';
const PlayersScreen = () => {
const route = useRoute();
return (
<SafeAreaView style={{paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView>
<View
style={{
padding: 10,
Expand Down
2 changes: 1 addition & 1 deletion screens/PreFinalScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const PreFinalScreen = () => {
}
};
return (
<SafeAreaView style={{flex: 1, backgroundColor: 'white', paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView style={{flex: 1, backgroundColor: 'white',}}>
<View style={{marginTop: 80}}>
<Text
style={{
Expand Down
1 change: 0 additions & 1 deletion screens/ProfileDetailScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ const styles = StyleSheet.create({
flex: 1,
backgroundColor: '#f8f9fa',
padding: 16,
paddingTop: Platform.OS === 'android' ? 35 : 0,
},
loaderContainer: {
flex: 1,
Expand Down
2 changes: 1 addition & 1 deletion screens/ProfileScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const ProfileScreen = () => {
};

return (
<SafeAreaView style={{paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView>
<ScrollView>
<View style={{padding: 12}}>
<View
Expand Down
2 changes: 1 addition & 1 deletion screens/RegisterScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const RegisterScreen = () => {
};

return (
<SafeAreaView style={{ flex: 1 , paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView style={{ flex: 1}}>
<View style={{ padding: 13 }}>
<Text style={{ fontSize: 16, fontWeight: '500' }}>
You're almost there!
Expand Down
2 changes: 1 addition & 1 deletion screens/SelectImgScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const SelectImage = () => {

return (
<>
<SafeAreaView style={{flex: 1, backgroundColor: 'white', paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView style={{flex: 1, backgroundColor: 'white',}}>
<View style={{marginHorizontal: 10}}>
<Ionicons
onPress={() => navigation.goBack()}
Expand Down
2 changes: 1 addition & 1 deletion screens/SelectTimeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const SelectTimeScreen = () => {
}, [navigation]);

return (
<SafeAreaView style={{paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView>
<View style={styles.container}>
<View style={styles.timeSlotsContainer}>
{times.map((item) => (
Expand Down
1 change: 0 additions & 1 deletion screens/SlotScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ import {
<SafeAreaView
style={{
flex: 1,
paddingTop: Platform.OS === 'android' ? 35 : 0,
}}>
<ScrollView>
<View
Expand Down
1 change: 0 additions & 1 deletion screens/SplashScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const SplashScreen = () => {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingTop: Platform.OS === 'android' ? 35 : 0
}}>
<View>
<Image
Expand Down
2 changes: 1 addition & 1 deletion screens/StartScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const StartScreen = () => {

return (
<>
<SafeAreaView style={{paddingTop: Platform.OS === 'android' ? 35 : 0}}>
<SafeAreaView>
<MapView
ref={mapView}
style={{ width: '100%', height: 400 }}
Expand Down
1 change: 0 additions & 1 deletion screens/TagVenueScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ import {
style={{
flex: 1,
backgroundColor: 'white',
paddingTop: Platform.OS === 'android' ? 35 : 0,
}}
>
<View
Expand Down
1 change: 0 additions & 1 deletion screens/VenueInfoScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const VenueInfoScreen = () => {
<SafeAreaView
style={{
flex: 1,
paddingTop: Platform.OS === 'android' ? 35 : 0,
}}>
<ScrollView>
<>
Expand Down

0 comments on commit 69ea2a7

Please sign in to comment.