ota-sample-module
v1.1.5
Published
A sample React Native module with TypeScript
Downloads
379
Maintainers
Readme
OTA Sample Module
A sample React Native module with TypeScript.
Features
- TypeScript support
- React Native components
- No native dependencies
- Easy to integrate
Installation
# Using npm
npm install ota-sample-module
# Using yarn
yarn add ota-sample-moduleLocal Development
You can use this module locally by adding it to your package.json:
"dependencies": {
"ota-sample-module": "file:app-modules/ota-sample-module"
}Usage
import { SampleComponent } from 'ota-sample-module';
const MyComponent = () => {
return <SampleComponent title="Hello World" />;
};API Reference
SampleComponent
A sample component that displays a title.
Props
| Prop | Type | Required | Description | |------|------|----------|-------------| | title | string | Yes | The title to display | | subtitle | string | No | An optional subtitle |
Development
Setup
# Install dependencies
npm install
# Build the module
npm run build
# Watch for changes
npm run build:watchTesting
# Run tests
npm testLicense
MIT
