[ReactNative] bring back some native modules

This commit is contained in:
Spencer Ahrens 2015-03-24 20:53:51 -07:00
parent 7311260e58
commit c7056c6d6d
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ RCT_CONVERTER(NSString *, NSString, description)
else if ([path length])
{
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);
return nil;
}