React native 在一个文件中使用copilot和connect的问题

React native 在一个文件中使用copilot和connect的问题,react-native,navigation,export,default,copilot,React Native,Navigation,Export,Default,Copilot,由于copilot要求使用导出默认值,并且我已经为connect设置了导出默认值,因此出现了一个问题。我找到的解决问题的所有选项都允许您运行或复制或连接 import PropTypes from 'prop-types' class App extends Component { static propTypes = { start: PropTypes.func.isRequired, copilotEvents: PropTypes.shape({

由于copilot要求使用导出默认值,并且我已经为connect设置了导出默认值,因此出现了一个问题。我找到的解决问题的所有选项都允许您运行或复制或连接

import PropTypes from 'prop-types'
class App extends Component {
    static propTypes = {
        start: PropTypes.func.isRequired,
        copilotEvents: PropTypes.shape({
            on: PropTypes.func.isRequired,
        }).isRequired,
    }

    constructor(props) {
        super(props)
        this.waterfallTips = new Tips.Waterfall(
            ['contacts', 'events', 'actionButton'],
            {
                onEnd: async () => {
                    await AsyncStorage.setItem('@Tips', true)
                },
            }
        )

        this.state = {
           // another params of state
            secondStepActive: true,
        }
        this.handleNextTips = this.handleNextTips.bind(this)
        OneSignal.inFocusDisplaying(0)
    }


    render() {
        //.....
}


const mapStateToProps = ({
    UserReducer,
    NotificationsReducer,
    GroupsReducer,
    ContactsReducer,
    CalendarReducer,
    ModalsReducer,
}) => {
    return {
        UserReducer,
        contactsData: ContactsReducer.contactsDataToShow,
        NotificationsReducer,
        groupsData: GroupsReducer.groups,
        CalendarReducer,
        ModalsReducer,
    }
}

export default connect(
    mapStateToProps,
    actions
)(copilot()(App))
现在我明白了

请告诉我如何让他们一起工作