React live-casino-chat-games App.
Below you will find some information on how to perform common tasks.
Table of Contents
Installation
npm i -S @live-casino-games/live-casino-chat-games
Usage
import ChatGames from "@live-casino-games/live-casino-chat-games";
<ChatGames />
Options
Methods
Methods | Params | Return |
---|
Contributing
git clone git@github.com:XproGaming/LiveCasino.ChatGames.git
yarn install
Starting
npm start
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run build
Builds the app for production to the dist/@app
folder.
It correctly bundles React in production mode and optimizes the build with rollup
for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
.env
Adding Development Environment Variables In Note: this feature is available with
react-scripts@3.1.2
and higher.
To define permanent environment variables, create a file called .env
in the root of your project:
REACT_APP_SECRET_CODE=abcdef
Theme configuration
const theme = {
dealerTopBar: {},
container: {},
form: {
active: {},
disable: {},
sendBtn: {},
emojiBtn: {}
},
list: {
msg: {
currentUser: {},
otherUsers: {},
dealer: {}
}
},
btnEnableChat: {},
notifMsg: {},
systemMsg: {}
};