Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
17Amir17 committed Dec 2, 2024
1 parent 8d6e1a2 commit f9e84f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions example76/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export const Basic = () => {

return (
<SafeAreaView style={exampleStyles.fullScreen}>
{/* <Text>s2111s223s</Text> */}
{/* <WebView source={{html: '<p>apapzpapa</p>'}} /> */}
<RichText editor={editor} />

<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
keyboardVerticalOffset={keyboardVerticalOffset}
Expand All @@ -53,7 +50,7 @@ const exampleStyles = StyleSheet.create({
},
});

const initialContent = '<p>This is a basic 22example!</p>';
const initialContent = '<p>This is a basic example!</p>';

const RootStack = createNativeStackNavigator({
screens: {
Expand Down
2 changes: 2 additions & 0 deletions src/RichText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ export const RichText = ({ editor, ...props }: RichTextProps) => {
// Propagated Props
onLoad={(e) => {
setLoaded(true);
// This is a workaround for iOS to make sure the webview is loaded
// See https://github.com/react-native-webview/react-native-webview/issues/3578
if (Platform.OS === 'ios' && key === 'webview') {
setKey('webview_reloaded');
}
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"example/android",
"!example/android/.gradle",
"!example/android/build",
"!example/android/app/build"ת
"!example/android/app/build",
"example76/package.json",
"example76/android",
"!example76/android/.gradle",
Expand Down

0 comments on commit f9e84f9

Please sign in to comment.