Skip to content

fix: update extended component for DefsView #2674

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bohdanprog
Copy link
Contributor

That problem occurred only on the Android platform because we missed the correct implementation for the Defs component.

Summary

Defs should extend from RenderableView and should have base methods. Previously, DefsView was extended by DefinitionView

Fixed issues:
#2615
#2616

Test Plan

You can easily run an example application with Test2615 and Test2616, which I've created.

What's required for testing (prerequisites)?

The app shouldn't crash.

Compatibility

OS Implemented
Android

@bohdanprog bohdanprog requested a review from jakex7 May 2, 2025 12:13
import android.view.View;
import com.facebook.react.bridge.ReactContext;

@SuppressLint("ViewConstructor")
class DefsView extends DefinitionView {
class DefsView extends RenderableView {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DefinitionView is the exact fit for Defs; instead of changing it to Renderable, we should move the necessary functions from Renderable to Definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants