Check out example codes for "how to put a struct in another struct C". It will help you in understanding the concepts better.

Code Example 1

struct B {  // <-- declare before
  int number;
};
struct A {
 int data;
 B b; // <--- declare data member of `B`
 };

Learn ReactJs, React Native from akashmittal.com