mobile: remove usage of customStyle prop

This commit is contained in:
Ammar Ahmed
2024-03-06 09:16:19 +05:00
parent 4303b89760
commit 386ec60ba0
5 changed files with 5 additions and 21 deletions

View File

@@ -59,22 +59,6 @@ const Auth = ({ navigation, route }) => {
/>
)}
{/* {initialAuthMode.current === AuthMode.welcomeSignup ? null : (
<IconButton
name="arrow-left"
onPress={() => {
hideAuth();
}}
color={colors.primary.paragraph}
customStyle={{
position: 'absolute',
zIndex: 999,
left: 12,
top: Platform.OS === 'ios' ? 12 + insets.top : insets.top
}}
/>
)} */}
<Toast context="local" />
</View>
);

View File

@@ -186,7 +186,7 @@ export const AppLockPassword = () => {
setSecureTextEntry(true);
});
}}
customStyle={{
style={{
width: 25,
height: 25,
marginRight: 5

View File

@@ -98,7 +98,7 @@ export default function AttachImage({
size={SIZE.lg}
name={compress ? "checkbox-marked" : "checkbox-blank-outline"}
color={compress ? colors.primary.accent : colors.primary.icon}
customStyle={{
style={{
width: 25,
height: 25
}}

View File

@@ -97,7 +97,7 @@ export const Properties = ({ close = () => {}, item, buttons = [] }) => {
type="accent"
accentColor={item.colorCode}
accentText={colors.static.white}
customStyle={{
style={{
width: 30,
height: 30,
borderRadius: 100,

View File

@@ -43,7 +43,7 @@ export const IconButton = ({
onPress,
name,
color,
style: customStyle,
style,
size = SIZE.xxl,
iconStyle = {},
left = 10,
@@ -83,7 +83,7 @@ export const IconButton = ({
justifyContent: "center",
alignItems: "center",
borderRadius: 100,
...customStyle
...style
}}
>
<Icon