@react-native-vector-icons/common
Version:
Customizable Icons for React Native with support for image source and full styling.
10 lines (8 loc) • 311 B
text/typescript
import NativeIconAPI from './NativeVectorIcons';
export default function ensureNativeModuleAvailable() {
if (!NativeIconAPI) {
throw new Error(
'The native RNVectorIcons API is not available, did you properly integrate the module? Please verify your autolinking setup and recompile.',
);
}
}