skip to Main Content

How to build React Native Expo app using env variables from eas secret?

I have a .env file: REACT_APP_URL={value} REACT_APP_API_URL={value} REACT_APP_VEHICLE_IMAGE_URL={value} REACT_APP_NAME={value} REACT_APP_GA_TRACKING_ID={value} REACT_APP_WEBSITE_URL={value} That is my current file of eas.json: { "cli": { "version": ">= 10.0.2" }, "build": { "development": { "developmentClient": true, "distribution": "internal", "ios": { "simulator": true } }, "preview":…

VIEW QUESTION

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
Back To Top
Search