diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 06ff1670..a49a38d5 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -485,7 +485,7 @@ PODS: - React-jsi (= 0.72.9) - React-logger (= 0.72.9) - React-perflogger (= 0.72.9) - - RNLiveMarkdown (0.1.0): + - RNLiveMarkdown (0.1.3): - RCT-Folly (= 2021.07.22.00) - React-Core - SocketRocket (0.6.1) @@ -709,7 +709,7 @@ SPEC CHECKSUMS: React-runtimescheduler: a7b1442e155c6f131d8bdfaac47abdc303f50788 React-utils: a3ffbc321572ee91911d7bc30965abe9aa4e16af ReactCommon: 180205f326d59f52e12fa724f5278fcf8fb6afc3 - RNLiveMarkdown: e76d6cd583fe59179100055b2e58f444b807ac66 + RNLiveMarkdown: 79f23328b984e15502395a44260917e999b07e08 SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 Yoga: eddf2bbe4a896454c248a8f23b4355891eb720a6 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a diff --git a/example/src/App.tsx b/example/src/App.tsx index 6d14c907..39aae5be 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -53,8 +53,15 @@ function getReactNativeVersion() { return `${major}.${minor}.${patch}`; } +function getRandomColor() { + return `#${Math.floor(Math.random() * 16777215) + .toString(16) + .padStart(6, '0')}`; +} + export default function App() { const [value, setValue] = React.useState(DEFAULT_TEXT); + const [markdownStyle, setMarkdownStyle] = React.useState({}); // TODO: use MarkdownTextInput ref instead of TextInput ref const ref = React.useRef(null); @@ -89,6 +96,8 @@ export default function App() { onChangeText={setValue} style={styles.input} ref={ref} + markdownStyle={markdownStyle} + placeholder="Type here..." /> {/* TextInput singleline