I have a problem with getting a random image from my Json file
So I have created a Json file with ID's and images of famous people. Now I would like to get a single random image out of the Json file and display it. SO far I tried this, but I get…
So I have created a Json file with ID's and images of famous people. Now I would like to get a single random image out of the Json file and display it. SO far I tried this, but I get…
I am trying to modify a code in .jsx to include a country selector and for that I am using the country-region-selector package using npm After I install it in my ubuntu, and I am trying to run the code…
I'm able to signin with google account using aws-amplify library in Reactjs app. When I logout and try to login again, it doesn't ask me for google username & password. It uses the previous session (somehow) and redirect me back…
I have an array of objects in an json file: [ { "department": "Sound Department", "subDepartments": [ "Supervising Sound Editor", "Dialog Editor", "Sound Designer", "Foley Artis", "Sound Recordist" ] }, { "department": "Camera Department", "subDepartments": [ "Camera Operator", "Second Assistant…
I have been encountering with this conditional operator, phone={this.props.projectDetails?.agency?.phone ?? this.props.projectDetails.phone } I wanted to use Phone number that is given in agency?.phone but at some point we didn’t had phone number in agency so we were using projectDetail's phone…
I'm trying to do xmb (psp/ps3) menu in react and i have a problem. The problem is that items scroll through the next item. For example: Item 1 scrolls to Item 3 (Item 2 is skipped although item 2 should…
How to search/filter arrays within arrays in React? For example: I have this data (videosData.js): [ { "id": 1, "title": "Video 1", "video_leght": "00:50:00", "date": "20.05.2010", "questions": [ { "id": 1, "question": "Question 1 ", "url": "Link" }, { "id":…
I guess this is a simple issue, but I am stuck here for a while, so any advice may be helpful! I have a react app and I am calling a GraphQL api (with apollo). Inside an arrow function component…
I have been working on a problem for 2 days now, with react-native-maps. This is my whole component Show Static Map on Screen: I am unable to properly show the map and marker on the screen What I have done…
I'm generating a pre-signed url using java for an image stored in s3 public String generateDownloadLink(String bucketName, String responseContentDisposition, String key, int days) { GetObjectRequest objectRequest = GetObjectRequest.builder() .bucket(bucketName) .responseContentDisposition(responseContentDisposition) .key(key).build(); GetObjectPresignRequest preSignRequest = GetObjectPresignRequest.builder() .signatureDuration(Duration.ofDays(days)) .getObjectRequest(objectRequest) .build(); PresignedGetObjectRequest presignedRequest…