Skip to content

Commit

Permalink
Update FilamentProxy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Feb 20, 2024
1 parent b239845 commit 43b2054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/src/FilamentProxy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FilamentViewNativeComponent } from './FilamentViewNativeComponent'
import { FilamentView } from './FilamentViewNativeComponent'

export interface TFilamentProxy {
/**
Expand All @@ -20,7 +20,7 @@ if (global.nativeCallSyncHook == null) {
// In Bridge architecture there was a separate Module and View, but now it's all a View - how do I add static methods on that?
// Maybe we need to create a separate FilamentModule as well (in addition to the FilamentView).
// @ts-expect-error
const successful = FilamentViewNativeComponent.install()
const successful = FilamentView.install()
if (!successful) {
throw new Error('Failed to initialize react-native-filament! Check the native logs (adb logcat or Xcode logs) for more information.')
}
Expand Down

0 comments on commit 43b2054

Please sign in to comment.