diff --git a/src/components/markdownEditor/view/markdownEditorView.js b/src/components/markdownEditor/view/markdownEditorView.js
index 4ceea3c11..02810b4e7 100644
--- a/src/components/markdownEditor/view/markdownEditorView.js
+++ b/src/components/markdownEditor/view/markdownEditorView.js
@@ -13,6 +13,8 @@ import { PostBody } from '../../postElements';
import { StickyBar } from '../../basicUIElements';
import { TextInput } from '../../textInput';
+import { ThemeContainer } from '../../../containers';
+
// Styles
import styles from './markdownEditorStyles';
@@ -201,22 +203,26 @@ export default class MarkdownEditorView extends Component {
behavior={Platform.OS === 'ios' ? 'padding' : null}
>
{!isPreviewActive ? (
-
+
+ {({ isDarkTheme }) => (
+
+ )}
+
) : (
this._renderPreview()
)}
diff --git a/src/containers/index.js b/src/containers/index.js
index 3d725da0a..2b9d0390a 100644
--- a/src/containers/index.js
+++ b/src/containers/index.js
@@ -5,6 +5,7 @@ import ProfileEditContainer from './profileEditContainer';
import RedeemContainer from './redeemContainer';
import SpinGameContainer from './spinGameContainer';
import TransferContainer from './transferContainer';
+import ThemeContainer from './themeContainer';
export {
InAppPurchaseContainer,
@@ -14,4 +15,5 @@ export {
RedeemContainer,
SpinGameContainer,
TransferContainer,
+ ThemeContainer,
};
diff --git a/src/containers/themeContainer.js b/src/containers/themeContainer.js
new file mode 100644
index 000000000..22a24adff
--- /dev/null
+++ b/src/containers/themeContainer.js
@@ -0,0 +1,18 @@
+/* eslint-disable no-unused-vars */
+import React from 'react';
+import { connect } from 'react-redux';
+
+const ThemeContainer = ({ children, isDarkTheme }) => {
+ return (
+ children &&
+ children({
+ isDarkTheme,
+ })
+ );
+};
+
+const mapStateToProps = state => ({
+ isDarkTheme: state.application.isDarkTheme,
+});
+
+export default connect(mapStateToProps)(ThemeContainer);