EX

Expo Crypto

expo-crypto

Provides cryptography primitives for Android, iOS and web.

React Native Libraries
react-native
react-native-web
expo
crypto
ios
android
web
native
react
expo-crypto
Stars
52k
Weekly
3.6M
Open issues
809
Bundle
~25 kB

Installation

npm install expo-crypto

Code example

import { View, Text, StyleSheet } from "react-native";
import { Crypto } from "expo-crypto";

export function Example() {
  return (
    <View style={styles.box}>
      <Text style={styles.title}>Crypto</Text>
      <Crypto />
    </View>
  );
}

const styles = StyleSheet.create({
  box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 12 },
  title: { fontSize: 18, fontWeight: "600" },
});

Pros & cons

Pros

  • Actively maintained by 650 Industries, Inc.
  • 3.6M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • 809 open issues on GitHub

FAQs

Alternatives & similar libraries