Gaëtan Renaudeau 8 years ago
parent
commit
6f631dedff

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

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