suixudongi8 / react-native-adaptivecards

React Native renderer for AdaptiveCards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

React Native renderer for AdaptiveCards.

Sample Screenshot

Getting Started

Basic Usage

  1. Installation
$ 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
  1. Impementation
  • Import to the component where you want to show an AdaptiveCards
import AdaptiveCard from 'react-native-adaptivecards';
  • Send initial props
    <AdaptiveCard adaptiveCard={} overrideStyle={} />

Properties

Prop default Type Description
adaptiveCard - object Json object based on AdaptiveCards schema
overrideStyle {...} object Customized styles

Examples

$ cd examples
$ yarn
$ react-native run-ios

About

React Native renderer for AdaptiveCards


Languages

Language:TypeScript 52.4%Language:JavaScript 47.0%Language:CSS 0.6%Language:HTML 0.1%