Skip to content

Commit

Permalink
fix: github build error
Browse files Browse the repository at this point in the history
  • Loading branch information
stulip committed Apr 3, 2023
1 parent edc124f commit dc33ed9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ import React from "react";
import { Text, Platform, KeyboardAvoidingView, SafeAreaView, ScrollView } from "react-native";
import {actions, RichEditor, RichToolbar} from "react-native-pell-rich-editor";


const handleHead = ({tintColor}) => <Text style={{color: tintColor}}>H1</Text>
const TempScreen = () => {
const richText = React.useRef();
return (
Expand All @@ -312,7 +314,7 @@ const TempScreen = () => {
<RichToolbar
editor={richText}
actions={[ actions.setBold, actions.setItalic, actions.setUnderline, actions.heading1 ]}
iconMap={{ [actions.heading1]: ({tintColor}) => (<Text style={{color: tintColor}}>H1</Text>) }}
iconMap={{ [actions.heading1]: handleHead }}
/>
</SafeAreaView>
);
Expand Down

0 comments on commit dc33ed9

Please sign in to comment.