firebase.database().ref('people').child(this.state.ids[licznik]).child('login')
This is my query. However it does not work. this.state.ids[licznik] equals 1, and instead of it I put 1, '1' or variable without index (that is not in the table) that equals 1 everything works fine, but indexed one won't work. Is it possible to do it somehow? I need to do it with indexed one as this is inside of loop and licznik is being incremented