🌏 Web | 🖥 Electron | 📱 React Native |
---|---|---|
❌ | ❌ | ✅ |
Install the plugin as a dependency in your project:
yarn add @bluebase/plugin-react-native-paper
The easiest way to add a new plugin is pass it as a prop to the BlueBaseApp
component.
import { BlueBaseApp } from '@bluebase/core';
import Plugin from '@bluebase/plugin-react-native-paper';
export const App = () => (
<BlueBaseApp plugins={[Plugin]} />
);
Typically, in a large project you would be using BlueBase CLI. In your BlueBase project created by the CLI, add the plugin in the plugins
field in your bluebase.ts
file:
export default {
// ...other bluebase.ts properties
plugins: [
import('@bluebase/plugin-react-native-paper')
]
}
This plugin registers following plugins in BlueBase:
- [x] Button
- [x] Divider
- [x] TextInput