Closed shalabi67 closed 3 years ago
if i used <Gallery columns={2} photos={photos} every thing works as expected.
since I want to get my photos by calling an API so if I used <Gallery columns={2} photos={this.state.photos}
the app stop working.
any idea how to use state with photos?
I got it working. component is fine, it was a bug at my code.
if i used <Gallery columns={2} photos={photos} every thing works as expected.
since I want to get my photos by calling an API so if I used <Gallery columns={2} photos={this.state.photos}
the app stop working.
any idea how to use state with photos?