Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

react-native-hello-sdk-test7

Hello Chat Widget SDK for react native application.

    1.0.78unpublishedlatest
    GitHub

Version published
Maintainers
1

Readme

Source

React Native Chat Widget by MSG91 # HelloSDK

Getting started

Login or create account at MSG91 to use Hello SDK service.

After login at MSG91 follow below steps to get your hello chat widget configuration.

  • From navigation drawer expand Manage > Inboxes > Select Inbox as Chat > Edit Widget.
  • Configure your widget and copy the helloConfig object.

Installing

npm install @msg91comm/react-native-hello-sdk react-native link

Example

import ChatWidget from 'react-native-hello-sdk';

Create a state to manage the widget visibility and paste the helloConfig object.

const [showWidget, setShowWidget] = useState(false); var helloConfig = { widgetToken: "XXXXX", unique_id: <unique_id>, name: <name>, number: <number>, mail: <mail> }

Use Component ChatWidget and provide props as shown below.

return ( <View style={{ flex: 1 }}> <Button title="Chat with us" onPress={()=>setShowWidget(true)} /> <ChatWidget showWidget={showWidget} helloConfig={helloConfig} onCloseWidget={()=>setShowWidget(false)} /> </View> );

License

Copyright 2022 MSG91 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Keywords

FAQs

Last updated on 27 Dec 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc