Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memoizeWrap when displayName is null (#654)
`Component.displayName` can be undefined for release builds which means a bunch of components will fight for the undefined key. In my app it results in the `Switch` component rendering nothing (or probably just another component like `ScrollView`). I also added a null check since some components are being removed from RN core like ToolbarAndroid so it makes `memoizeWrap` safe in those cases.
- Loading branch information