mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 10:34:57 +00:00
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:
parent
2f745ec2c2
commit
e04206a88d
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user