[ReactNative] bring back some native modules
This commit is contained in:
parent
7311260e58
commit
c7056c6d6d
|
@ -62,7 +62,7 @@ RCT_CONVERTER(NSString *, NSString, description)
|
||||||
else if ([path length])
|
else if ([path length])
|
||||||
{
|
{
|
||||||
NSURL *URL = [NSURL URLWithString:path relativeToURL:[[NSBundle mainBundle] resourceURL]];
|
NSURL *URL = [NSURL URLWithString:path relativeToURL:[[NSBundle mainBundle] resourceURL]];
|
||||||
if ([URL isFileURL] &&![[NSFileManager defaultManager] fileExistsAtPath:[URL absoluteString]]) {
|
if ([URL isFileURL] && ![[NSFileManager defaultManager] fileExistsAtPath:[URL path]]) {
|
||||||
RCTLogWarn(@"The file '%@' does not exist", URL);
|
RCTLogWarn(@"The file '%@' does not exist", URL);
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue