LucasBassetti / react-native-chatbot

:speech_balloon: Easy way to create conversation chats
https://github.com/LucasBassetti/react-simple-chatbot
MIT License
246 stars 116 forks source link

Theme not working #82

Open Singh-Kanchan opened 3 years ago

Singh-Kanchan commented 3 years ago

Description

Theme Provider has no effect

App.js -

import React from "react";
import { ThemeProvider } from "styled-components";
import ChatBot from "react-native-chatbot";

const App = () => {
  return (
    <ThemeProvider theme={theme}>
      <ChatBot steps={steps} />
    </ThemeProvider>
  );
};

const steps = [
  {
    id: "1",
    message: "Hello World",
    end: true
  }
];

const theme = {
  background: "#000",
  fontFamily: "sans",
  headerBgColor: "#3333ff",
  headerFontColor: "#fff",
  headerFontFamily: "Montseratt",
  botBubbleColor: "#3333ff",
  botFontColor: "#fff",
  userBubbleColor: "#fff",
  userFontColor: "#4a4a4a",
  fontSize: 32
};

export default App;