Check out example codes for "c# file directory selection". It will help you in understanding the concepts better.
Code Example 1
CommonOpenFileDialog dialog = new CommonOpenFileDialog();
dialog.InitialDirectory = "C:\\Users";
dialog.IsFolderPicker = true;
if (dialog.ShowDialog() == CommonFileDialogResult.Ok)
{
MessageBox.Show("You selected: " + dialog.FileName);
}
Learn ReactJs, React Native from akashmittal.com