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

Reactjs – Firebase Error: export 'default' (imported as 'firebase') was not found in 'firebase/compat/app' (module has no exports)

I recently upgraded Firebase to 10.12.4 and now have this error which isn't allowing me to compile. import firebase from 'firebase/compat/app'; import "firebase/compat/auth"; import "firebase/compat/database"; import "firebase/compat/firestore"; import "firebase/compat/storage"; const firebaseConfig = { apiKey: "xxx", authDomain: "xxx", databaseURL: "xxx", projectId:…

VIEW QUESTION

Reactjs – Vite v5.3.2 building for production error

During the build, I experienced the following error. > tsc && vite build vite v5.3.2 building for production... src/index.ts:1:20 - error TS6142: Module './components/Button/Button' was resolved to '/Users/myusername/photoravel-design-system/src/components/Button/Button.tsx', but '--jsx' is not set. 1 import Button from './components/Button/Button'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/index.ts:2:19…

VIEW QUESTION
Back To Top
Search