Skip to content

Commit

Permalink
fix: correct typo in variable name nativeImagePicler (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihd0628 committed Nov 22, 2023
1 parent 7ebc765 commit ae2cdd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platforms/native.ts
Expand Up @@ -26,7 +26,7 @@ const DEFAULT_OPTIONS: ImageLibraryOptions & CameraOptions = {
// @ts-ignore We want to check whether __turboModuleProxy exitst, it may not
const isTurboModuleEnabled = global.__turboModuleProxy != null;

const nativeImagePicler = isTurboModuleEnabled ?
const nativeImagePicker = isTurboModuleEnabled ?
require("./NativeImagePicker").default :
NativeModules.ImagePicker;

Expand All @@ -35,7 +35,7 @@ export function camera(
callback?: Callback,
): Promise<ImagePickerResponse> {
return new Promise((resolve) => {
nativeImagePicler.launchCamera(
nativeImagePicker.launchCamera(
{...DEFAULT_OPTIONS, ...options},
(result: ImagePickerResponse) => {
if (callback) callback(result);
Expand All @@ -50,7 +50,7 @@ export function imageLibrary(
callback?: Callback,
): Promise<ImagePickerResponse> {
return new Promise((resolve) => {
nativeImagePicler.launchImageLibrary(
nativeImagePicker.launchImageLibrary(
{...DEFAULT_OPTIONS, ...options},
(result: ImagePickerResponse) => {
if (callback) callback(result);
Expand Down

0 comments on commit ae2cdd7

Please sign in to comment.