Add native nav bar with title and button icon

Summary: Add native android nav bar. Title and button info are from FBDynamicNavigationOption. Set through setBarOption.

Reviewed By: achen1

Differential Revision: D9367058

fbshipit-source-id: 0f3f790d2c4d3af97568927993964678bc028bc3
This commit is contained in:
Jiaqi Wu 2018-08-30 22:41:23 -07:00 committed by Facebook Github Bot
parent 2f745ec2c2
commit e04206a88d

View File

@ -205,14 +205,14 @@ public class ReactActivityDelegate {
};
}
private Context getContext() {
protected Context getContext() {
if (mActivity != null) {
return mActivity;
}
return Assertions.assertNotNull(mFragmentActivity);
}
private Activity getPlainActivity() {
protected Activity getPlainActivity() {
return ((Activity) getContext());
}
}