setup fragment based tab bar navigation

Summary: `Changelog: [Android] [Changed] - Make ReactFragment variables protected instead of private, create getter for ReactDelegate`

Reviewed By: keoskate

Differential Revision: D29981436

fbshipit-source-id: 3e5df811cd07edccf37f72c9f917f9ea0882be0b
This commit is contained in:
Vegas Murphy
2021-08-02 15:23:06 -07:00
committed by Facebook GitHub Bot
parent 034c6dfe34
commit 0fa8253d56
@@ -27,8 +27,8 @@ import com.facebook.react.modules.core.PermissionListener;
*/
public class ReactFragment extends Fragment implements PermissionAwareActivity {
private static final String ARG_COMPONENT_NAME = "arg_component_name";
private static final String ARG_LAUNCH_OPTIONS = "arg_launch_options";
protected static final String ARG_COMPONENT_NAME = "arg_component_name";
protected static final String ARG_LAUNCH_OPTIONS = "arg_launch_options";
private ReactDelegate mReactDelegate;
@@ -79,6 +79,10 @@ public class ReactFragment extends Fragment implements PermissionAwareActivity {
return ((ReactApplication) getActivity().getApplication()).getReactNativeHost();
}
protected ReactDelegate getReactDelegate() {
return mReactDelegate;
}
@Override
public View onCreateView(
LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {