Skip to content

Commit

Permalink
feat(constants): improve templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Feb 8, 2024
1 parent aa96a95 commit 18c60e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/constants/templates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Platform } from "react-native";
import { type FormatFilter } from "react-native-vision-camera";

const pixelFormat = Platform.OS === "ios" ? "native" : "yuv";

Expand All @@ -17,4 +18,4 @@ export const Templates = {
{ videoResolution: { width: 1024, height: 768 } },
{ pixelFormat },
],
};
} as const satisfies Record<string, FormatFilter[]>;

0 comments on commit 18c60e5

Please sign in to comment.