We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b42077 commit 125543aCopy full SHA for 125543a
src/ios/SQLite.m
@@ -172,7 +172,7 @@ -(id) getDBPath:(NSString *)dbFile at:(NSString *)atkey {
172
targetBundleDirPath = [targetBundleDirPath stringByAppendingPathComponent: @"www"];
173
assetFilePath = [targetBundleDirPath stringByAppendingPathComponent: dbfilename];
174
RCTLog(@"Built path to pre-populated DB asset from app bundle www subdirectory: %@",assetFilePath);
175
- } else if ([assetFilePath characterAtIndex:0] == '~') {
+ } else if ([assetFilePath hasPrefix:@"~"]) {
176
assetFilePath = [assetFilePath substringFromIndex:1];
177
NSString *targetBundleDirPath = [[NSBundle mainBundle] resourcePath];
178
assetFilePath = [targetBundleDirPath stringByAppendingPathComponent: assetFilePath];
0 commit comments