Check out example codes for "how to get relative path in c#". It will help you in understanding the concepts better.

Code Example 1

Uri file = new Uri(@"c:\foo\bar\blop\blap.txt");
// Must end in a slash to indicate folder
Uri folder = new Uri(@"c:\foo\bar\");
string relativePath =
Uri.UnescapeDataString(
folder.MakeRelativeUri(file)
.ToString()
.Replace('/', Path.DirectorySeparatorChar)
);

Learn ReactJs, React Native from akashmittal.com