In my scenario, I am trying to create a validation
logic within render return. I have asycstorage
value I am getting value and validate by using below code
render() { const value = AsyncStorage.getItem(‘username’); return ({value !== null && (<View……………..</View> )})}
Above code not validating also based on validation result it is not rendering. If value not equal to null mean, I need to render view. How to achieve this?