skip to Main Content

Custom React Native text input with placeholder

I'm trying to style my TextInput placeholder with 2 colors so I've set it up in the following manner. <TextInput { ...props } style={[styles.textBox]} > {!value && required && <Text style={{ color: placeholderTextColor }}> <Text style={{ color: 'red' }}>*</Text> {placeholderText}…

VIEW QUESTION
Back To Top
Search