React Native renderer for AdaptiveCards.
As we are using react-native@0.57, at this moment, react-native-web could not support react-native@0.57.
-
add package
yarn add react-native-adaptivecards
-
add dependencies
- Import to the component where you want to show an AdaptiveCards
import { CardRoot } from 'react-native-adaptivecards';- Send initial props
<CardRoot payload={} config={} />| Prop | default | Type | Description |
|---|---|---|---|
| payload | - | object | Json object based on AdaptiveCards schema. |
| config | {...} | object | Host config used to override the default config. |
brew install watchman
yarn global add gulp-cli
yarn all