How to use the react-native-im-easemob.Client.login function in react-native-im-easemob

To help you get started, we’ve selected a few react-native-im-easemob 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 gaoxiaosong / react-native-im / example / src / Home.js View on Github external
componentDidMount() {
        if (Constant.Account && Constant.Password) {
            IMStandard.Delegate.user.getMine = () => ({userId: Constant.Account});
            Client.login(Constant.Account, Constant.Password)
                .then(() => IMStandard.login(true));
        }
    }
github hecom-rn / react-native-im-easemob / example / App.js View on Github external
{
                    if (this.account && this.password) {
                        Client.login(this.account, this.password)
                    }
                }}>