Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
prettier fix
  • Loading branch information
Saadnajmi committed Oct 4, 2025
commit 0957cc8a0e940dff4e4d55d2b8ea554479a51e4d
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const styles = StyleSheet.create({
},
});


function DragDropView(): React.Node {
// $FlowFixMe[missing-empty-array-annot]
const [log, setLog] = React.useState([]);
Expand Down Expand Up @@ -75,7 +74,8 @@ function DragDropView(): React.Node {
alignItems: 'center',
marginVertical: 10,
}}>
<Text style={{color: isDraggingOver ? '#1976d2' : '#666', fontSize: 14}}>
<Text
style={{color: isDraggingOver ? '#1976d2' : '#666', fontSize: 14}}>
{isDraggingOver ? 'Release to drop' : 'Drop an image or file here'}
</Text>
</View>
Expand All @@ -85,7 +85,9 @@ function DragDropView(): React.Node {
<Text style={{height: 90}}>{log.join('\n')}</Text>
</View>
<View style={{flex: 1}}>
<Text style={{fontWeight: 'bold', marginBottom: 4}}>Dropped Image:</Text>
<Text style={{fontWeight: 'bold', marginBottom: 4}}>
Dropped Image:
</Text>
<Image
source={{uri: imageUri}}
style={{
Expand Down Expand Up @@ -202,7 +204,8 @@ function OnPaste(): React.Node {

exports.title = 'Drag and Drop Events';
exports.category = 'UI';
exports.description = 'Demonstrates onDragEnter, onDragLeave, onDrop, and onPaste event handling in TextInput.';
exports.description =
'Demonstrates onDragEnter, onDragLeave, onDrop, and onPaste event handling in TextInput.';
exports.examples = [
{
title: 'Drag and Drop (View)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ import type {
RNTesterModuleExample,
} from '../../types/RNTesterTypes';
import type {KeyboardTypeOptions} from 'react-native/Libraries/Components/TextInput/TextInput';
// [macOS
import type {
SettingChangeEvent,
} from 'react-native/Libraries/Components/TextInput/TextInput'; // macOS]
import type {SettingChangeEvent} from 'react-native/Libraries/Components/TextInput/TextInput'; // [macOS]

import RNTesterText from '../../components/RNTesterText';
import ExampleTextInput from './ExampleTextInput';
Expand Down
Loading