How to use the antd-mobile-rn.Toast.hide 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 / Read.js View on Github external
callback: content => {
            Toast.hide();
            if (content) {
              chapter.content = content;
              chapterList.find(item => item.id === chapter.id).content = content;
              this.setState({
                book,
                chapter,
                chapterList
              });
              this.scrollToTop();
              this.drawer.closeDrawer();
              // 自动缓存后5章
              this.onCache(5);
            } else {
              this.setState({
                book,
                chapter,
github gyxing / react-native-book / app / containers / Read.js View on Github external
componentWillUnmount() {
    Storage.set(`scrollTop_${this.bookId}`, { top: scrollTop });
    Toast.hide();
  }
github gyxing / react-native-book / app / containers / Detail.js View on Github external
onSuccess: () => {
            Toast.hide()
            this.props.dispatch(
              NavigationActions.navigate({
                routeName: 'Read',
                params: { id: book.id },
              })
            )
          },
          onError: () => {
github gyxing / react-native-book / app / containers / Switching.js View on Github external
callback: () => {
                Toast.hide();
                dispatch(createAction('book/getBooks')());
                dispatch(
                    NavigationActions.reset({
                        index: 0,
                        actions: [NavigationActions.navigate({routeName: 'Home'})],
                    })
                )
            },
            callbackOne: (data) => {
github gyxing / react-native-book / app / containers / Home.js View on Github external
onSuccess: () => {
                        Toast.hide();
                        this.props.dispatch(
                            NavigationActions.navigate({
                                routeName: "Read",
                                params: { id: item.id }
                            })
                        );
                    },
                    onError: () => {

antd-mobile-rn

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

MIT
Latest version published 6 years ago

Package Health Score

67 / 100
Full package analysis