Skip to content

Instantly share code, notes, and snippets.

View taboulot's full-sized avatar

Clément Taboulot taboulot

View GitHub Profile
// In react-native-image-resizer/ios/ImageResizer.mm
// Replace
NSURL * fileURL = [[NSURL alloc] initWithString:uri];
// With this
NSURL *baseURL = [NSURL fileURLWithPath:@"file://"];
NSURL * fileURL = [[NSURL alloc] initWithString:uri relativeToURL:baseURL];