Explorar el Código

Added content view to fragmentScreen with zero dimensions, so that it affects styling

Yedidya Kennard hace 8 años
padre
commit
93a6c98536

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/screens/FragmentScreen.java Ver fichero

@@ -35,6 +35,7 @@ public class FragmentScreen extends Screen {
35 35
         content = new FrameLayout(getContext());
36 36
         content.setId(ViewUtils.generateViewId());
37 37
         ContentView contentView = new ContentView(getContext(), screenParams.screenId, screenParams.passProps, screenParams.navigationParams, null);
38
+        addView(contentView, 0, 0);
38 39
         addView(content, addBelowTopBar());
39 40
         addFragment();
40 41
         contentView.init();