Check out example codes for "error: dereferencing pointer to incomplete type". It will help you in understanding the concepts better.

Code Example 1

The “dereferencing pointer to incomplete type” error commonly occurs in C when one tries to dereference a type (usually a struct) that is:

not declared at all.
declared, but not defined.

Learn ReactJs, React Native from akashmittal.com