Gaëtan Renaudeau 7 years ago
parent
commit
6f631dedff
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      android/src/main/java/fr/greweb/reactnativeviewshot/ViewShot.java

+ 0
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/ViewShot.java View File

@@ -117,7 +117,6 @@ public class ViewShot implements UIBlock {
117 117
         }
118 118
         Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);
119 119
         Canvas c = new Canvas(bitmap);
120
-        view.layout(0, 0, view.getLayoutParams().width, view.getLayoutParams().height);
121 120
         view.draw(c);
122 121
 
123 122
         if (width != null && height != null && (width != w || height != h)) {