I always unpack this so that the render function looks tidier. Is it bad practice to do this?
Example:
class Zoom extends React.Component {
// ...
render() {
const {view, zoomOutScreen} = this;
const {navigation} = this.props;
return (
<Wrapper
innerRef={view}
animation='zoomIn'
duration={200}
useNativeDriver={true}
>
<Component
navigation={navigation}
zoomOutScreen={zoomOutScreen}
/>
</Wrapper>
);
}
}