What is the recommended architecture for user groups in a react-native app? I created a simple app with https://github.com/mcnamee/react-native-starter-kit which uses firebase and would like to modify it to fit my needs but am unsure of how to achieve this.
I want to allow users to be part of many groups if they choose (similar to group messaging where a user can choose their friends to be part of a group). So if there are three users user1, user2, and user3 there could potentially be group1 which contains user1/user2 and group2 which contains user2/user3.
In a relational DB setup, I could just use foreign keys to express these relationships but in NoSQL DBs, like firebase, the structure appears to be much different.
Is there a recommended approach? Are there example apps that implement similar functionality somewhere?
I am totally new to mobile app development and won't want to go down the wrong path right from the get-go, so any tips are much appreciated.