Dynamic drawer width
marked this post as
Dynamic configuration is possible in React Navigation 5
drawerWidtha function that returns a width can be used, for example
drawerWidth: Math.min(Dimensions.get('window').width - 60, 320)would set the width to the window width - 60 and 320 at max. Using Redux for example you could use a width which is stored in the applications state.