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

Code Example 1

github "readium/r2-shared-swift" "develop"
github "readium/r2-streamer-swift" "develop"
github "readium/r2-navigator-swift" "develop"
github "readium/readium-opds-swift" "develop"

Learn ReactJs, React Native from akashmittal.com