0.1.0 • Published 5 years ago

@rndm/render-plugin-meta v0.1.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

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!'
            }
        }
    }
};