matthidinger / 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 react-native-adaptivecards

or by Yarn

$ yarn add react-native-adaptivecards
  1. Impementation
  • Import to the component where you want to show an AdaptiveCards
import { CardRoot } from 'react-native-adaptivecards';
  • Send initial props
    <CardRoot payload={} config={} />

Properties

Prop default Type Description
payload - object Json object based on AdaptiveCards schema.
config {...} object Host config used to override the default config.

Develope

$ brew install watchman
$ yarn global add gulp-cli
$ yarn all
$ yarn run-ios

Examples

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

About

React Native renderer for AdaptiveCards

License:MIT License


Languages

Language:TypeScript 52.6%Language:JavaScript 46.4%Language:CSS 0.9%Language:HTML 0.1%