Skip to content
Advertisement

React Native Updating State with this.setState

Hi I’m trying to update the state data value (data:[]) from API. the issue is from the line highlighted:

JavaScript
JavaScript

Advertisement

Answer

Hi please check below code.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement