Browse Source

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

Yedidya Kennard 8 years ago
parent
commit
93a6c98536

+ 1
- 0
android/app/src/main/java/com/reactnativenavigation/screens/FragmentScreen.java View File

35
         content = new FrameLayout(getContext());
35
         content = new FrameLayout(getContext());
36
         content.setId(ViewUtils.generateViewId());
36
         content.setId(ViewUtils.generateViewId());
37
         ContentView contentView = new ContentView(getContext(), screenParams.screenId, screenParams.passProps, screenParams.navigationParams, null);
37
         ContentView contentView = new ContentView(getContext(), screenParams.screenId, screenParams.passProps, screenParams.navigationParams, null);
38
+        addView(contentView, 0, 0);
38
         addView(content, addBelowTopBar());
39
         addView(content, addBelowTopBar());
39
         addFragment();
40
         addFragment();
40
         contentView.init();
41
         contentView.init();