react-native-cn-quill
Androidアプリでテキストエディタとして使用しています。QuillToolbar のタッチが反応しません。ツールバーからオプションを選択しようとすると、選択されないことがあり、上付き/下付きオプションをクリックすると、キーボードビューが自動的に終了します。これに関する解決策はありますか?
サンプルコードを使用しています
import React from 'react';
import { SafeAreaView, StyleSheet, StatusBar } from 'react-native';
import QuillEditor, { QuillToolbar } from 'react-native-cn-quill';
export default function App() {
const _editor = React.createRef();
return (
<SafeAreaView style={styles.root}>
<QuillToolbar editor={_editor} options="full" theme="light" />
<QuillEditor
style={styles.editor}
ref={_editor}
/>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
title: {
fontWeight: 'bold',
alignSelf: 'center',
paddingVertical: 10,
},
root: {
flex: 1,
marginTop: StatusBar.currentHeight || 0,
backgroundColor: '#eaeaea',
},
editor: {
flex: 1,
padding: 0,
borderColor: 'gray',
borderWidth: 1,
marginHorizontal: 30,
marginVertical: 5,
backgroundColor: 'white',
},
});