addView

open override fun addView(parent: ReactDrawerLayout, child: View, index: Int)

This method is overridden because of two reasons:

  1. A drawer must have exactly two children

  2. The second child that is added, is the navigationView, which gets panned from the side.