Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(legacy view template): extract view to a separate file #375

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: export -> export const
atlj committed Oct 27, 2023
commit 8656a9b09f524d4e89e4f4f5c1cd8efb7b63e22b
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ type <%- project.name -%>Props = {

const ComponentName = '<%- project.name -%>View';

export UIManager.getViewManagerConfig(ComponentName) != null
export const <%- project.name -%>View = UIManager.getViewManagerConfig(ComponentName) != null
? requireNativeComponent<<%- project.name -%>Props>(ComponentName)
: () => {
throw new Error(LINKING_ERROR);