Check out example codes for "valid URL check in c#". It will help you in understanding the concepts better.

Code Example 1

public static bool CheckURLValid(this string source) => Uri.TryCreate(source, UriKind.Absolute, out Uri uriResult) && uriResult.Scheme == Uri.UriSchemeHttps;

Learn ReactJs, React Native from akashmittal.com