Template for React Native TypeScript library
First, install the library in your project by npm:
npm install react-native-typescript-npm-starter
Or Yarn:
yarn add react-native-typescript-npm-starter
Connect the library to the project with ES6 import:
import { HelloWorld } from 'react-native-typescript-npm-starter'
Name | Type | Description |
---|---|---|
text | string | Custom Hello World message |
import React from 'react'
import { HelloWorld } from 'react-native-typescript-npm-starter'
const App = () => {
return <HelloWorld text="Good Morning!" />
}
export default App
This project is licensed under the MIT License © 2021-present Jakub Biesiada