Note: Experimental! Please report issues and feedback.
Render Portable Text with React Native.
Utilizes @portabletext/react under the hood, and thus has the exact same API, but will render React Native views instead of HTML.
npm install --save @portabletext/react-native
import {PortableText} from '@portabletext/react-native'
<PortableText
value={[/* array of portable text blocks */]}
components={/* optional object of custom components to use */}
/>
The rendered views has very little or no styling applied, so you will quite often want to pass custom components to override the built-in ones.
Customizing components are done in the same way as in @portabletext/react - see the README for more details.
MIT © Sanity.io