React Native renderer for AdaptiveCards
Перейти к файлу
Dongyu Zhao 8b9dc5a947 Merged PR 686347: Align the render rule with other platforms and enhance extensibility
Related work items: #1292147, #1300851, #1300852, #1300853, #1300854, #1300855, #1300856, #1307932
2018-06-29 09:01:24 +00:00
dist Merged PR 686347: Align the render rule with other platforms and enhance extensibility 2018-06-29 09:01:24 +00:00
example Merged PR 686347: Align the render rule with other platforms and enhance extensibility 2018-06-29 09:01:24 +00:00
src Merged PR 686347: Align the render rule with other platforms and enhance extensibility 2018-06-29 09:01:24 +00:00
.gitignore Merged PR 686347: Align the render rule with other platforms and enhance extensibility 2018-06-29 09:01:24 +00:00
README.md Update readme.md 2017-11-20 17:30:10 +08:00
gulpfile.js Merged PR 665591: Fix gulp output structure issue. 2018-06-12 05:43:39 +00:00
package.back.json Fix package.json for resolving yarn issue. 2018-06-12 11:45:52 +08:00
package.json Merged PR 686347: Align the render rule with other platforms and enhance extensibility 2018-06-29 09:01:24 +00:00
screenshot.gif Update readme.md 2017-11-20 17:30:10 +08:00
tsconfig.json Merged PR 665591: Fix gulp output structure issue. 2018-06-12 05:43:39 +00:00
tslint.json Merged PR 672558: Align Action.ShowCard's behavior with other platform 2018-06-18 06:54:33 +00:00
yarn.lock Merged PR 686347: Align the render rule with other platforms and enhance extensibility 2018-06-29 09:01:24 +00:00

README.md

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