@draftbit/native

Draftbit UI Components that Depend on Native Components

Usage no npm install needed!

<script type="module">
  import draftbitNative from 'https://cdn.skypack.dev/@draftbit/native';
</script>

README

@draftbit/native

Draftbit components with native dependencies that are incompatable with non-expo build systems, such as expo-av or @expo/vector-icons.

These components are imported / injected inside the @draftbit/ui library so that incompatable expo dependencies do not exist in @draftbit/core.

Add new components with such dependecies here.

See IconButton.tsx in core for an example of a 'hybrid' component API that allows a native component to be injected for ui and a web-compatible version be injected for web.