Skip to content

Commit

Permalink
added haptics on add card
Browse files Browse the repository at this point in the history
  • Loading branch information
reujab committed May 30, 2021
1 parent 5d0ee32 commit 9ee233c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions App/EditSetScreen/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as Haptics from "expo-haptics"
import Button from "../Button"
import EditableCard from "./EditableCard"
import Flashcard from "../Flashcard"
Expand Down Expand Up @@ -166,6 +167,8 @@ export default class EditSetScreen extends React.Component {
}

addCard(): void {
Haptics.selectionAsync()

if (!this.context.sets.includes(this.context.selectedSet)) {
this.context.sets.push(this.context.selectedSet)
}
Expand Down

0 comments on commit 9ee233c

Please sign in to comment.