Skip to content

Instantly share code, notes, and snippets.

@michaelevensen
Created November 16, 2018 20:40
Show Gist options
  • Save michaelevensen/e96bc0ce801b7ada815bf100f25ca15f to your computer and use it in GitHub Desktop.
Save michaelevensen/e96bc0ce801b7ada815bf100f25ca15f to your computer and use it in GitHub Desktop.
import { Data, Override } from "framer";
export const data = Data({
isRecording: false
});
export const toggleRecording: Override = () => {
return {
onTap() {
data.isRecording = (data.isRecording ? false : true);
}
}
}
// This is required to pass share the data state.
export const isRecordingData: Override = (props) => { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment