Troila Mobile Ui

Troila Mobile Ui

  • Docs
  • API
  • Help
  • Blog

›Components

Troila Mobile Ui

  • Getting Started

Components

  • Text
  • ListView
  • List
  • TextInput
  • InputItem
  • Step
  • SpringAnimatedView

卓朗云桌面-内部组件

  • request (请求类)
  • BackgroundButton
  • ExtendsBackButton
  • HeaderTitleButton
  • HeaderImageButton
  • 注意事项
  • 不同平台和设备的入口

Step

用于步骤显示

规则

  • 必须指定label和activeIndex

Example

iOS Android

Code

import React, { Component } from 'react';
import {
    View,
    StyleSheet,
} from 'react-native';
import {Step} from 'troila-mobile-ui';


export default class Example extends Component {
    render() {
        return (
            <View style={styles.container}>
                <Step
                    label={['目录基本信息', '分配交付组', '规格配置', '外网IP段', '通信权限']}
                    activeIndex={1}
                    activeColor={'#0099FF'}
                />
            </View>
        )
    }
}


const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#f5f5f9',
        paddingTop: 50,
    }
})

Props

属性说明类型默认值
label步骤内容Array[]
activeIndex当前状态Number0
activeColor活动状态下的颜色Colorblue
← InputItemSpringAnimatedView →
  • 规则
  • Example
  • Code
  • Props
Troila Mobile Ui
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2018 Your Name or Your Company Name