This package has been deprecated

Author message:

This package is no longer maintained. Please migrate to adaptivecards-reactnative

react-native-adaptivecards
TypeScript icon, indicating that this package has built-in type declarations

0.1.37 • Public • Published

Introduction

React Native renderer for AdaptiveCards.

Sample Screenshot

Online renderer and debugging tool can be found here

Getting Started

Basic Usage

  1. Installation
$ npm install react-native-adaptivecards

or by Yarn

$ yarn add react-native-adaptivecards
  1. Implementation
  • 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 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

Examples

cd examples
$ yarn
$ yarn ios

/react-native-adaptivecards/

    Package Sidebar

    Install

    npm i react-native-adaptivecards

    Weekly Downloads

    225

    Version

    0.1.37

    License

    MIT

    Unpacked Size

    421 kB

    Total Files

    303

    Last publish

    Collaborators

    • dongyuzhao