Merge pull request #58 from seasonyuu/master

Fix readerMode bug naoufal/react-native-safari-view#56
This commit is contained in:
Koen Punt
2017-10-01 16:38:02 +02:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ RCT_EXPORT_METHOD(show:(NSDictionary *)args callback:(RCTResponseSenderBlock)cal
}
// Initialize the Safari View
self.safariView = [[SFSafariViewController alloc] initWithURL:[NSURL URLWithString:args[@"url"]] entersReaderIfAvailable:args[@"readerMode"]];
self.safariView = [[SFSafariViewController alloc] initWithURL:[NSURL URLWithString:args[@"url"]] entersReaderIfAvailable:[args[@"readerMode"] boolValue]];
self.safariView.delegate = self;
// Set tintColor if available