How to use the antd-mobile-rn.Radio.RadioItem function in antd-mobile-rn

To help you get started, we’ve selected a few antd-mobile-rn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gyxing / react-native-book / app / containers / Switching.js View on Github external
import React, { Component } from "react";
import { connect } from "react-redux";
import { StyleSheet, View, Text, ScrollView } from "react-native";
import { Icon, Toast, Modal, Radio, TextareaItem, List } from "antd-mobile-rn";
import { Header, AppFont, Touchable } from "../components";
import Loading from "./Loading";
import {
    appHeight,
    createAction,
    appWidth,
    NavigationActions,
    Storage,
    originList
} from "../utils";

const RadioItem = Radio.RadioItem;

@connect(({ book, loading }) => ({ ...book, ...loading }))
export default class extends Component {
    constructor(props) {
        super(props);
        let {params} = props.navigation.state;
        this.refreshChapterOne = params.refreshChapterOne;
        this.refreshChapterMore = params.refreshChapterMore;
        this.book = params.book;
        this.ways = [
            {value: 'one', label: '仅当前章节'},
            {value: 'more', label: '剩余章节'},
            {value: 'all', label: '全本'}
        ];
        this.state = {
            dlWay: params.dlWay || "one",

antd-mobile-rn

基于蚂蚁金服移动设计规范的 React Native 组件库

MIT
Latest version published 6 years ago

Package Health Score

65 / 100
Full package analysis