React Native renderer for Adaptive Cards.react-native-adaptivecards
$ npm install git+https://msasg.visualstudio.com/DefaultCollection/Bing_Cortana/_git/react-native-adaptivecards
or by Yarn
$ yarn add git+https://msasg.visualstudio.com/DefaultCollection/Bing_Cortana/_git/react-native-adaptivecards
import AdaptiveCard from 'react-native-adaptivecards';
<AdaptiveCard adaptiveCard={} overrideStyle={} />
Prop | Required | Type | Description |
---|---|---|---|
adaptiveCard | Yes | object | Json object based on AdaptiveCards schema |
style | No | object | Customized styles |
config | No, default{…} | object | Customized config |
onSubmit | No | function | Submit Action |
onOpenUrl | No | function | OpenUrl Action |
onCallback | No | function | Callback Action |
onFocus | No | function | Focus Action |
onBlur | No | function | Blur Action |
onError | No | function | Error Action |
onInfo | No | function | Info Action |
onWarning | No | function | Warning Action |
$ cd examples
$ yarn
$ yarn ios
Author: microsoft
Live Demo: https://microsoft.github.io/react-native-adaptivecards/
GitHub: https://github.com/microsoft/react-native-adaptivecards
#react-native #programming