react-native-navigation的迁移库

ModalScreenLayout.java 741B

12345678910111213141516171819202122
  1. package com.reactnativenavigation.layouts;
  2. import android.support.v7.app.AppCompatActivity;
  3. import com.reactnativenavigation.params.ScreenParams;
  4. import com.reactnativenavigation.views.LeftButtonOnClickListener;
  5. public class ModalScreenLayout extends SingleScreenLayout {
  6. public ModalScreenLayout(AppCompatActivity activity,
  7. ScreenParams screenParams,
  8. LeftButtonOnClickListener leftButtonOnClickListener) {
  9. super(activity, null, null, screenParams);
  10. this.leftButtonOnClickListener = leftButtonOnClickListener;
  11. }
  12. @Override
  13. protected void pushInitialScreen(LayoutParams lp) {
  14. stack.pushInitialScreenWithAnimation(screenParams, lp);
  15. }
  16. }