1.0.15 • Published 16 days ago

@aemforms/af-react-native v1.0.15

Weekly downloads
-
License
Adobe Proprietary
Repository
-
Last release
16 days ago

React Native Components For Headless Adaptive Form

The document provides detailed information on React Native Components that you can use to render Headless Adaptive Form. To learn about the capabilties of Headless Adaptive Forms, see Overview of Headless Adaptive Forms

Demo Link

Demo(coming soon)

Table of Contents

  • List of Components
    • Button
    • Checkbox
    • Checkbox Group
    • Drop Down
    • Date Picker
    • File Upload
    • Password
    • Number Field
    • Panel
    • Plain Text
    • Radio Group
    • Repeater
    • Text Area Field
    • Text Field
  • Themes
    • Primary
    • Tertiary
    • Rose
    • Warning
    • Indigo
  • Mappings

Before you start {#pre-requisites}

To create and run a React Native app, you should have Node.js, npm (Node Package Manager), Xcode and Android Studio installed on your computer:

Setup Project

Create a React native Application using the following commands or follow the link.

npx react-native init AwesomeProject

Installation

Run the following command to add Adaptive Forms Components to you React Native Application:

npm install --save @aemforms/af-react-native

These form components are depend on @aemforms/af-core and @aemforms/af-react-renderer libraries. Run the following command to add these dependecies to your React Application:

npm install --save @aemforms/af-core @aemforms/af-react-renderer

Usage

import React from 'react';
import { AdaptiveForm } from '@aemforms/af-react-renderer';
import { NativeBaseProvider} from 'native-base';
import {mappings, Themes} from '@aemforms/af-react-native';
const json = {
  "adaptiveform": "0.10.0",
  "items": [
    {
      "name": "name",
      "type": "string",
      "fieldType": "text-input",
      "required": true,
      "label": {
        "value": "Name"
      }
    },
    {
      "name": "mobile",
      "type": "number",
      "fieldType": "number-input",
      "required": true,
      "label": {
        "value": "Mobile Number"
      }
    },
    {
      "name": "submit",
      "fieldType": "button",
      "label": {
        "value": "submit"
      }
    }
  ],
  "metadata": {
    "version": "1.0.0"
  }
}
const App = () => {
  return (
    <NativeBaseProvider theme={Themes.primary}>
      <AdaptiveForm
        formJson={json}
        mappings={mappings}
      />
    </NativeBaseProvider>
  );
};
export default App;

License

Copyright 2023 Adobe, Inc.

Your access and use of this software is governed by the Adobe Customer Feedback Program Terms and Conditions or other Beta License Agreement signed by your employer and Adobe, Inc.. This software is NOT open source and may not be used without one of the foregoing licenses. Even with a foregoing license, your access and use of this file is limited to the earlier of (a) 180 days, (b) general availability of the product(s) which utilize this software (i.e. AEM Forms), (c) January 1, 2023, (d) Adobe providing notice to you that you may no longer use the software or that your beta trial has otherwise ended.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ADOBE NOR ITS THIRD PARTY PROVIDERS AND PARTNERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.0.15

16 days ago

1.0.14

21 days ago

1.0.13

1 month ago

1.0.12

1 month ago

1.0.11

2 months ago

1.0.10

3 months ago

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

5 months ago

1.0.2

7 months ago

1.0.1

7 months ago