@rndm/render-plugin-meta
v0.1.0
Published
RNDM Render Plugin: Meta. Meta data html editor for RNDM Render
Downloads
3
Readme
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!'
}
}
}
};