Config Types
@expo/config-types
Types for the Expo config object app.config.ts
React Native Libraries
json
app.json
app.config.js
react-native
expo
react
@expo/config-types
React Native Libraries
javascript
npm
Stars
926
Weekly
12M
Open issues
12
Bundle
~15 kB
Installation
npm install @expo/config-typesCode example
import { View, Text, StyleSheet } from "react-native";
import { ConfigTypes } from "@expo/config-types";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>Config Types</Text>
<ConfigTypes />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by ide
- 12M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- 12 open issues on GitHub