Some of the pangea lib's dependencies must be adjusted to the environment. E.g. the key chain access and some sort of that. You can find the spec's here:
src/specification/jsonRpcNode.jsis an interface that must be implemented for ethereum nodes.
src/specification/osDependencies.jsmust be implemented for every environment. It contain's useful method's for cryptography (like randombytes, etc)
src/specification/secureStorageInterface.jsmust be implemented by every environment in order to store values secure.