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

Theme not working #82

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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