Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Theme not working #82

Open
Singh-Kanchan opened this issue Feb 24, 2021 · 0 comments
Open

Theme not working #82

Singh-Kanchan opened this issue Feb 24, 2021 · 0 comments

Comments

@Singh-Kanchan
Copy link

Singh-Kanchan commented Feb 24, 2021

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;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant