@rndm/render-plugin-meta

0.1.0 • Public • Published

RNDM Render Plugin: Meta

About

This plugin provides meta data updating for the RNDM Render package.

This wraps the RNDM Meta package to allow a serialisable component that will update your pages meta tags.

Installation

If you have not already done so, then please ensure you have installed the RNDM Render and RNDM Plugin: Core package.

From NPM

npm install --save @rndm/render-plugin-meta

Post Installation

In order to allow this plugin to work, it must first be included in your project. You can do this inside your main index file:

import '@rndm/render-plugin-render';
import '@rndm/render-plugin-meta';

Usage

The Meta Plugin transforms the Meta component serialisable JSON or JavaScript Objects.

Example

{
    type: 'meta.Meta',
    props: {
        meta: {
            title: 'RNDM',
        },
        children: {
            type: 'react-native.Text',
            props: {
                children: 'I have meta!'
            }
        }
    }
};

Readme

Keywords

none

Package Sidebar

Install

npm i @rndm/render-plugin-meta

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Unpacked Size

2.39 kB

Total Files

6

Last publish

Collaborators

  • paul.j.napier