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

The app crashes when an empty section is passed to the ListTemplate. #157

Open
shubhadeep-foodhub opened this issue Nov 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@shubhadeep-foodhub
Copy link

const template = new ListTemplate({
            sections: [],
            title: 'Test Android Auto',
            emptyViewSubtitleVariants: ["No data found"],
            async onItemSelect(e) {
                console.log("test clicked", e);
            },
        });
        CarPlay.setRootTemplate(template);

When testing the ListTemplate, if the sections is empty the the app crashed.

To Reproduce
Steps to reproduce the behaviour:

  1. create a list template and provide an empty array in the sections

Expected behaviour
Should show emptyViewSubtitleVariants

Android Auto (please complete the following information):

  • Device: [e.g. Oneplus 6 and DHU]
  • Android Version: [11]
  • RNCarPlay version [2.4.0-beta.2 - Android Auto]
@shubhadeep-foodhub shubhadeep-foodhub added the bug Something isn't working label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant