Check out example codes for "java read public key from keystore". It will help you in understanding the concepts better.

Code Example 1

KeyStore ks = KeyStore.getInstance("AndroidKeyStore");
    ks.load(null);          
    PublicKey publicKey = ks.getCertificate("aliasYouChose").getPublicKey();

Learn ReactJs, React Native from akashmittal.com