+
+
+
+
+
+
+
+
+
+
+
+
+ diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 1751db1..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -.idea - -node_modules/ diff --git a/.npmignore b/.npmignore deleted file mode 100644 index fdf2dd0..0000000 --- a/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.idea -example \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 0000000..b0aebfd --- /dev/null +++ b/404.html @@ -0,0 +1,366 @@ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +... +import { Avatar } from 'material-elements'; +... +render() { + <View> + <Avatar text="A" /> + <Avatar icon={{name:'person',color:'blue'}}/> + <Avatar icon={{name:'history',size:20}}/> + <Avatar icon={{name:'mic'}} size={75} /> + <Avatar image={{source:require('../Images/launch-icon.png')}}/> + </View> +} +
const propTypes = { + /** + * 传入Image组件属性,avatar渲染Image + */ + image: PropTypes.shape({ + ...Image.propTypes, + }), + /** + * 传入Icon属性,avatar渲染icon + */ + icon:PropTypes.shape({ + name:PropTypes.string, + color:PropTypes.string, + size:PropTypes.number, + type:PropTypes.string, + }), + /** + * 传入text,avatar渲染text组件 + */ + text: PropTypes.string, + /** + * 仅仅用于container尺寸: style: { width: size, height: size, borderRadius: size / 2 } + */ + size: PropTypes.number, + /** + * avatar样式 + */ + style: PropTypes.shape({ + container: ViewPropTypes.style, + content: Text.propTypes.style, + }), +}; +
-
-
-
-
-### Usage
-
-```js
-...
-import { ActionButton } from 'material-elements';
-...
-render() {
-
-
-### Usage
-
-```js
-...
-import { Badge, Icon, Avatar } from 'material-elements';
-...
-render() {
-
-
-
-# BottomSheet
-
-### 使用
-
-```js
-...
-import {BottomSheet} from 'material-elements';
-...
-
-render(){
- return (
-
-
-### Usage
-
-```js
-...
-import { Dialog, DialogDefaultActions } from '../react-native-material-ui';
-...
-render() {
-
-
-
-### Usage
-
-```js
-...
-import { Toolbar } from '../react-native-material-ui';
-...
-render() {
-
diff --git a/docs/images/avatar.png b/docs/images/avatar.png
deleted file mode 100644
index f6ebf82..0000000
Binary files a/docs/images/avatar.png and /dev/null differ
diff --git a/docs/images/bottom_sheet_list.png b/docs/images/bottom_sheet_list.png
deleted file mode 100644
index 6432905..0000000
Binary files a/docs/images/bottom_sheet_list.png and /dev/null differ
diff --git a/docs/index.md b/docs/index.md
deleted file mode 100644
index e87d10c..0000000
--- a/docs/index.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# **Install**
-
-
-## install material-elements
-运行 `npm install --save material-elements`
-
-如果你安装了yarn,可以使用 `yarn add material-elements`
-
-
-## install react-native-vector-icons
-material-elements 依赖于react-native-vector-icons