skip to Main Content

how to display current date in text input's placeholder in react native

`<View style={styles.dateInput}> <Text style={styles.text}>To Date</Text> <TouchableOpacity onPress={() => showDatePicker(false)}> <TextInput placeholder="Select Date" value={toDate} editable={false} style={styles.dateinput} /> </TouchableOpacity> </View> <DateTimePickerModal isVisible={isDatePickerVisible} mode="date" onConfirm={handleDateConfirm} onCancel={hideDatePicker} />` i want to display current date in place of "Select Date" in placeholder. i have a…

VIEW QUESTION

React native – Unmatched route on react-native

Hello, I have a project structured like the picture. I want to go from GetStarted.js to Instruction.js. I'm using the following code: <View> <TouchableOpacity style={styles.button} onPress={() => router.push('./Instructions.js')} > <Text style={styles.buttonText}> Welcome </Text> </TouchableOpacity> </View> but I get an Unmatched…

VIEW QUESTION
Back To Top
Search