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

Theme not working #82

@Singh-Kanchan

Description

@Singh-Kanchan

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions