Accessible modal dialog component for React.JS
Questions tagged [react-modal]
260 questions
-1
votes
2 answers
How to update the state declared in parent component to a child component using react hook
My react project contains two components: one is parent and another is child. My parent component looks like this:
import React, {useState } from 'react';
import AddNewModal from './AddNewModal';
const MouseContainer = (props) =>{
const…

saon
- 591
- 1
- 7
- 19
-1
votes
2 answers
Unable to close the react-modal on certain condition
Hello i want close Modal when condition has been met (this.chooseRounds > 0 && this.state.rounds == this.state.roundsValue), but i can't close this i dont know why. I spent more time for resolve this problem, this is a code:
let modalShow;
…

RetupK
- 53
- 7
-1
votes
1 answer
How to pass data to a react modal?
I am trying to perform the following
Call a modal on a button click from say page 1.
Show the data passed from page 1 as content in the modal.
Come back to the page 1 on clicking the close button on the modal.
I wish to use a react modal to serve…

Kanika Dawar
- 1
- 1
-1
votes
4 answers
why i got [object object ]
import React, { Component } from "react";
import { Button, View ,Text ,StyleSheet, FlatList, ScrollView} from "react-native";
import DateTimePicker from "react-native-modal-datetime-picker";
import moment from 'moment'
import addDays from…

rushabh
- 11
- 5
-1
votes
1 answer
How to get the Modal effect using react-navigation?
I am trying to replicate Popup behaviour(Modal) using react-navigation. I am able to replicate some parts of it but I am not able to generate the complete result. I have to put the tabBar in the Background of the screen. I don't want to hide it. I…

Vedant Bajaj
- 53
- 8