Closed Qurishe closed 2 years ago
You have to set its state prop to closed in the onClosed event. See https://github.com/microsoft/react-native-xaml/blob/main/USAGE.md#contentdialog
@asklar Yes, when i click the close button it closes without a problem but when i click the button to open it again it doesn't open the contentDialog Box. I have copied the exact code from the usage guide.
thanks for reporting @Qurishe , this got recently broken, fixing it in #228
Problem Description
I am using react-native-xaml in my React Native Windows project. I created a Dialog using ContentDialog from react-native-xaml but the problem is the first time the app loads, when i press the button it open up the ContentDialog but after closing it, it doesn't open the second time. React Native : 0.70 React Native Windows: 0.70.1 react-native-xaml: 0.0.69
Steps To Reproduce
Expected Results
Toggle the ContentDialog on and off by pressing the button.
Environment