Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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",