https://github.com/brainpoint/febs-react-component
A component framework for React Native / React Web.
https://github.com/brainpoint/febs-react-component
component components control react react-component react-components react-native
Last synced: about 2 months ago
JSON representation
A component framework for React Native / React Web.
- Host: GitHub
- URL: https://github.com/brainpoint/febs-react-component
- Owner: brainpoint
- License: other
- Created: 2016-08-24T07:25:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-24T04:19:31.000Z (over 9 years ago)
- Last Synced: 2025-02-15T06:27:05.945Z (over 1 year ago)
- Topics: component, components, control, react, react-component, react-components, react-native
- Language: JavaScript
- Size: 123 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Febs React Component
> A component framework for React Native / React Web.
[](https://nodei.co/npm/febs-react-component/)
# Install
Use npm to install:
```js
npm install febs-react-component --save
```
It will copy directory `node_modules/febs-react-component` to `node_modules/react-component`
# Example
see the files in path: ./demo/*.*
```js
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, } from 'react-native';
import { Navigator } from '../index'
class app extends Component {
render() {
return (
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](./demo).
## Components
* AlertView



* Button

* Icons

* Navigator

* Page

* RefreshListView (from npm)
* RefreshScrollView (from npm)
* TableViewCell

* TimerMgr
timer管理; 可以在页面销毁时自动销毁存在的timer
统一封装 requestAnimationFrame / cancelAnimationFrame 方法