diff --git a/README.md b/README.md index bdc6d87..34d4db1 100644 --- a/README.md +++ b/README.md @@ -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}) => H1 const TempScreen = () => { const richText = React.useRef(); return ( @@ -312,7 +314,7 @@ const TempScreen = () => { (H1) }} + iconMap={{ [actions.heading1]: handleHead }} /> );