2.0.7 • Published 1 year ago

react-native-ot-shield v2.0.7

Weekly downloads
4
License
ISC
Repository
github
Last release
1 year ago

react-native-ot-shield

Simple Request Crash / Method manager

Installation

Use the yarn manager yarn to install react-native-ot-shield.

yarn add react-native-ot-shield

Configuration

You must create one configuration file

{
    "remote":"https://myremote.dev",
    "actions": [
        "isExampleToSimpleAction"
        {
            "name":"isExampleToComplexeAction",
            "actions": [
                "subAction",
                "anotherSubAction"
            ]
        }
    ]
}

shield.setup.json

Import

import Shield from 'react-native-ot-shield'

Prepare

Shield.load(require('myconfig.json'))

Usage

Simple action :

let result = await Shield.isExampleToSimpleAction({nameP:dataP}) // Return JSON
// This action send object {nameP:dataP, action: isExampleToSimpleAction} in post to request https://myremote.dev/isExampleToSimpleAction

Complexe action :

let result = await Shield.isExampleToComplexeAction.subAction({nameP:dataP}) // Return JSON
// This action send object {nameP:dataP, action: subAction} in post to request https://myremote.dev/isExampleToComplexeAction

MIT

2.0.5

1 year ago

2.0.4

2 years ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago