Socket
Socket
Sign inDemoInstall

react-native-hello-sdk-test7

Package Overview
Dependencies
1
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-hello-sdk-test7

Hello Chat Widget SDK for react native application.


Version published
Maintainers
1
Created

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 for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • 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