# tsuicomponent

> UI Component for using react

Latest version **0.0.4** (published 2016-01-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install tsuicomponent
pnpm add tsuicomponent
yarn add tsuicomponent
bun add tsuicomponent
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2016-01-15 |
| First published | 2016-01-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tsjoe |

## Links

- npm: https://www.npmjs.com/package/tsuicomponent
- Repository: https://github.com/Tradeshift/TSReactUI
- Homepage: https://github.com/Tradeshift/TSReactUI#readme
- Issues: https://github.com/Tradeshift/TSReactUI/issues
- npm.io page: https://npm.io/package/tsuicomponent

## Recent versions

- 0.0.4 (latest) — 2016-01-15
- 0.0.1 — 2016-01-15

## README

# TSReactUI

UI Component for using react

**TODO** push this to NPM repository

## Use TS Moblie UI Component

Currently installation guide from local disk

1. Clone this project to local disk
   
2. Install the package from local disk, like
   
   `npm install <disk_path> --save`
   
3. Use UIComponent as below:
   
   ``` js
   var React = require('react-native');
   var TSButton = require('tsuicomponent').TSButton;
   
   var {
   
     AppRegistry,
   
     StyleSheet,
   
     Text,
   
     View,
   
   } = React;
   
   var TestUI = React.createClass({
   
     render: function() {
   
       return (
         <View style={styles.container}>
          <TSButton>Click Me</TSButton>
       
         </View> 
       );
   
     }
   
   });
   
   var styles = StyleSheet.create({
   
     container: {
   
       flex: 1,
       justifyContent: 'center',
       alignItems: 'center',
       backgroundColor: '#F5FCFF',
   
     },
   
     welcome: {
   
       fontSize: 20,
       textAlign: 'center',
       margin: 10,
   
     },
   
     instructions: {
   
       textAlign: 'center',
       color: '#333333',
       marginBottom: 5,
   
     },
   
   });
   
   AppRegistry.registerComponent('TestUI', () => TestUI);
   ```



## Develop UI Component

Any chagnes that apply to this project should increate the version number in package.json, it help client to update the ui component.



`  "version": "0.0.1",`

Currently we have 2 UI components exposed in index.js, if we have new components, please add the similar statement below:

``` js
var button = require('./TSButton');
var listView = require('./TSListview');

module.exports.TSButton = button;
module.exports.TSListView = listView;
```



## Update UI  Component for client

Once the component is updated, in the client project execute:

`npm updte`

---
_Source: https://npm.io/package/tsuicomponent · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
