need to code a reactnative page "AnswerQuestions" which has 2 sections. and no scrolling…
- User
need to code a reactnative page "AnswerQuestions" which has 2 sections. and no scrolling in this page. those 2 sections should be written in separate component files and invoked in this main file, so that even in other pages we can invoke these components if needed.
- 1st section: 75% height of the page. left padding 11, right padding 14. title of this section will be "New questions", left aligned. on right side "See all" which on click takes to a screen with code: navigation.navigate(NavigationStrings.NewQuestions). distance below is 11. I have a response json with fields like {username, videoUrl, videoTitle, videoPostedDateTime, videoThumbnail}. below that title, this json entries will be populated, with upto entires that can accomodate the space left.... the entries should be spaced out like below: A B C D A will be a dot in blue color, indicating whether user saw it or not! B will be thumbnail image with width 60, height: 83.73. C will be a text component, with text like: '@{username} sent a video question on "{title}"'. D will be like a "Reply" button which is of width 72, height 50. below it, at a distance of 7, there will a text mentioning, how long since its been from {videoPostedDateTime}. eg: 1h, 30m, 1d 2h. space between A & B is 7. B & C is 16. C & D is 9. clicking the button should take to navigation.navigate(NavigationStrings.VideoPage) Also, If the screen is very wider, then the text can be written in a single line. but make both the sections centrally aligned of the page. below section should always be aligned straight to the above section.
- 2nd section: 25% height of the page title of this section will be "Previous answered", left aligned. on right side "See all" which on click takes to a screen with code: navigation.navigate(NavigationStrings.PreviouslyAnswered). distance below is 11. below it should display - just like the bookmark component you gave me, a list of thumbnail images of videos from a json named PreviouslyAnswered. But not the entire list should be displayed, only those that can fit in that area, the ones, be it the height, width available for this section. the thumbnail's width is 106.67 and height is 147.
- Assistant
- User
continue
- Assistant