Tag: REACT-NATIVE-STYLESHEET
Esto es probablemente una respuesta simple, pero aún estoy aprendiendo js / react native y estoy un poco perdido. ¿Alguien podría explicar por qué el siguiente código no logra alinear a la derecha el elemento “handicap”? import React from ‘react’; import { View, StyleSheet } from ‘react-native’; import AppText from . . . Read more
¿Cómo puedo cambiar la imagen del botón de retroceso en React Native? Quiero cambiar la flecha de retroceso por una chevrón.
Necesito cambiar los tamaños de estilo en 3 tamaños diferentes como width<520, width<768, width<960. Intenté crear una hoja de estilo condicional como: {const width = useWindowDimensions().width; //Códigos …} if( 0 <= width <= 520) { const styles = StyleSheet.create({ container: { width: '%100', }, } else if ( 521 <= . . . Read more
Tengo un enunciado if que establece un gancho, pero además de modificar el texto interior, ¿quiero variar el estilo, es posible? aquí está el código: const [ageLabel, setAgeLabel] = useState(‘Age’); const testDate = () => { let day = parseInt(dayText); let month = parseInt(monthText); let year = parseInt(yearText); setAgeLabel(‘Age’); let . . . Read more