Check out example codes for "kotlin remove name from an activity". It will help you in understanding the concepts better.

Code Example 1

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    try
    {
        this.getSupportActionBar().hide();
    }
    catch (NullPointerException e){}

    setContentView(R.layout.activity_main);
}

Learn ReactJs, React Native from akashmittal.com