top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

React Native Base Drawer not working in Android ?

0 votes

Can you help me how to implement Drawer in React Native with using Native Base?

I have tried with the sample code as per the documentation but it's not working. Also, I'm using react navigation as well.


import React, { Component } from 'react';
import { Drawer } from 'native-base';
import SideBar from './yourPathToSideBar';
export default class DrawerExample extends Component {
  render() {
    closeDrawer = () => {
    openDrawer = () => {
    return (
        ref={(ref) => { this.drawer = ref; }}
        content={<SideBar navigator={this.navigator} />}
        onClose={() => this.closeDrawer()} >
      // Main View
posted Jan 17, 2019 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

Can anyone suggest the library for Push Notification?

0 votes

Update is installed but status is in pending on App Center. Since sync is alreday called , it won't rollback automatically and also not updating to newer version. The app crashes on startup everytime.

So how to rollback or update to new code push bundle version in this case ?

Here is the sample code:

componentDidMount() { 
codePush.sync(codePushOptions,(status) => {  
switch (status) {    
case codePush.SyncStatus.CHECKING_FOR_UPDATE:
//console.log("Checking for updates.");
case codePush.SyncStatus.DOWNLOADING_PACKAGE:
//console.log("Downloading package.");
case codePush.SyncStatus.INSTALLING_UPDATE:
//console.log("Installing update.");
case codePush.SyncStatus.UP_TO_DATE:
case codePush.SyncStatus.UPDATE_INSTALLED:         
throw new Error();

Note : I have thrown error to check working of auto rollback.

0 votes


Facing the below error while relaunching the app in android device.

Error type 3
Error: Activity class {com.demo/demoActivity} does not exist.

Can anyone guide me how to resolve this?

0 votes

After added React Navigation getting an issue like below

undefined is not an object (evaluating 'RNGestureHandlerModule.State')

Can anyone help to resolve this?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.