prop name change

This commit is contained in:
moist-webDev 2023-05-27 00:49:20 -04:00
parent 9898f5db71
commit c4b50a190a
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
import { StyleSheet, Text, View} from 'react-native'; import { StyleSheet, Text, View} from 'react-native';
export default function Button({ title='', theme={}, onPress, eStyle={} }:any){ export default function Button({ title='', theme={}, onPress, style={} }:any){
return ( return (
<Text onPress={onPress} style={{...style(theme).button, ...eStyle}}>{title}</Text> <Text onPress={onPress} style={{...cstyle(theme).button, ...style}}>{title}</Text>
) )
} }
const style = (theme:any) => { const cstyle = (theme:any) => {
return StyleSheet.create({ return StyleSheet.create({
container: { container: {
}, },