Check out example codes for "postgresql contains". It will help you in understanding the concepts better.

Code Example 1

SELECT id FROM TAG_TABLE WHERE 'aaaaaaaa' LIKE '%' || tag_name || '%';

Learn ReactJs, React Native from akashmittal.com