feat: implement WithLocalSvg

This commit is contained in:
Mikael Sand
2020-03-09 17:26:24 +02:00
parent 4e9e8b58b2
commit e66e87a5b5
3 changed files with 34 additions and 5 deletions
@@ -250,7 +250,7 @@ class RNSVGRenderableManager extends ReactContextBaseJavaModule {
char[] buffer = new char[DEFAULT_BUFFER_SIZE];
StringBuilder builder = new StringBuilder();
int n;
while ((n = reader.read(buffer)) != EOF) {
while ((n = reader.read(buffer, 0, DEFAULT_BUFFER_SIZE)) != EOF) {
builder.append(buffer, 0, n);
}
String result = builder.toString();