Check out example codes for "message uwp c#". It will help you in understanding the concepts better.

Code Example 1

private async void ShowMessage(string str)
        {
            var dialog = new MessageDialog(str);
            await dialog.ShowAsync();
        }

Learn ReactJs, React Native from akashmittal.com