I would like to build something similar to what Facebook has, a popup with dynamic content inside (image, text, etc.). So when you would click on an item it would open up a popup and url would be something like /post/343542.
I already have a component which shows up and displays the data, I'm struggling with router part of it. How to use a component in a route?
Thanks!
Related
I am writing a mobile app and when the user sees some screens of the app for the first time, I would like to show a tooltip, explaining some of the functionality.
For instance, the user navigates to the profile page, and I show a tooltip on the add icon, saying something like "you can add a photo here".
Obviously I dont want to show this tooltip every time the user navigates to the profile page, so what is the correct way of doing so? Is it via redux? Keeping some state like "tooltipWasShown"?
Or should I write a custom hook? Something which checks if the tooltip was shown? (this should happen again via redux I guess)
I dont think it is a unique problem, but I couldn't find any blog posts/examples of what is the way to implement it. Any suggestions are welcome!
You will need to use Async Storage for the save data about tutorial, if user reload app redux will be empty. Or will add isFirstEnter field to user in DB and then check this field
Is it possible to pass a URL into the material-ui Modal/Dialog to set its content? if not, how would you suggest I go about this? I have a page which I would like to load into a dialog. I don't want it to be a component as I want it to have its own URL.
I am currently working on a react-native project and I am facing the following problem:
I have a ScrollView with dynamic size. I would like to be able to export the content of the ScrollView into a PDF on click of a button. It is like creating a screenshot that scrolls through my whole view before saving the image into a pdf. How can I achieve that ?
I know that there is a component called "react-pdf" that I can use to render my own pdf. Is this the way to go ?
I have also seen that there is a component called "react-native-view-shot" which takes a picture of a view. But in my case it is a ScrollView so I don't think that it will work
I wasn't really sure how to word this question because I didn't know what exactly to search to find the name of this component. It's a really ubiquitous component that can be seen everywhere. For instance, on Reddit, when you click on a thread, instead of redirecting the URL or opening a new tab, a container pops up on the page that displays the content of the thread. Can anyone tell me the name of this component?
EDIT: To clarify, the URL still changes in the browser, but there is no redirect action that takes place - the new URL's content is simply overlaid on the existing page.
I need to create a React Component similar to a preview pane. These are search result so what I need the component to do is when the user clicks the "Preview" link or button a smaller panel opens up to show a preview. I have the URL text that I need to send to the control to generate the preview (these are search results from a SharePoint REST api call).
What I need to know since I am new to react, is what kind of component do I need to create. I am working in Visual Studio 2017 and have had success creating generic React components using this code :
import React, { Component } from 'react';
directive, so I am familiar with creating the Components, I just don't know which components to use. Can someone help with with the types of component I should use to build a simple preview? I am not necessarily looking for code, just a list of components to use or a link to tutorial
Thanks
I was able to create the control using an IFrame to host the "preview" url. The problem was with the URL that was being passed in.