Skip to content

Commit

Permalink
onSubmitEditing={handleAddNote}
Browse files Browse the repository at this point in the history
  • Loading branch information
K committed Nov 23, 2024
1 parent 8cb90d2 commit c1a2f5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nr-app/src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export default function Map() {
placeholder="Enter your note"
value={note}
onChangeText={setNote}
onSubmitEditing={handleAddNote}
/>
<Button title="Add Note" onPress={handleAddNote} />
<Button title="Cancel" onPress={() => setModalVisible(false)} />
Expand Down

0 comments on commit c1a2f5b

Please sign in to comment.