1.0.11 • Published 3 years ago
educhat v1.0.11
Educhat
A Chat by Educat.
Install
npm install --save educhat
or
yarn add educhat
Usage
import React from 'react'
import Educhat,
{
chatTheme,
connectionConfig,
chatConfig,
listUsers,
currentUser
} from 'educhat'
const App = () => {
listUsers([
{id:'1', name:'Bezerra da Silva'},
{id:'2', name:'Hebe Camargo'},
{id:'3', name:'Enéas Carneiro'},
{id:'4', name:'Agostinho Carrara'},
{id:'5', name:'Rogerinho do Ingá'},
{id:'6', name:'Bruce Dickinson'},
])
currentUser({
id: '7',
name: 'Diego Maradona'
})
chatConfig({
oneContact: false,
provider: 'educhat',
button: 'BALLOON'
})
connectionConfig({
apiKey: 'IGUyguyBIBiubkbkjbUB289bkjb87G9',
authDomain: 'educhat-test.firebaseapp.com',
projectId: 'educhat-test',
storageBucket: 'educhat-test.appspot.com',
messagingSenderId: '62138763281',
appId: '1:13729793879:web:39hi434J323j5b5'
})
chatTheme({
fontFamily: 'Open Sans',
primaryColor: '#62C0D2',
secondaryColor: '#DFDFDE',
fontColor: '#FFF',
messageMeBackground: '#62C0D2',
messageOtherBackground: '#FFF',
messageMeColor: '#FFF',
messageOtherColor: '#768190'
})
return <Educhat />
}
export default App
License
MIT © Joaopedromata