0.2.4 • Published 7 years ago

citong-react-component v0.2.4

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
7 years ago

Citong React Component

A component framework for React Native / React Web.

example

see the files in path: ./demo/.

import React, { Component } from 'react';
import { AppRegistry, StyleSheet, } from 'react-native';

import { Navigator } from '../index'

class app extends Component {
  render() {
    return (
      <Navigator
        ref='nav'
        defaultTitle={{ text: 'Title', }}
        defaultLeftButton={{ text: 'Back', }}
        defaultRightButton={{ text: 'Forward', onPress:()=>this.refs.nav.pop() }} 
        defaultBarTintColor='#2112'
        configureScene={(route, routeStack) => Navigator.SceneConfigs.FloatFromBottom}
        initialRoute={{
          title:    {text: 'My Initial Scene'}, 
          component:Page    // Page中可以使用 props. 来操作.
        }}
      />
    );
  }
}

const styles = StyleSheet.create({});
AppRegistry.registerComponent('app', () => app);

React Native/Web compatible

see demo.

Components

  • AlertView
  • Button
  • Icons
  • Navigator
  • Page
  • RefreshListView (from npm)
  • RefreshScrollView (from npm)
  • TableViewCell
  • TimerMgr
0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago