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

Android Auto Change Title Color #198

Open
trandung1601 opened this issue Jul 4, 2024 · 0 comments
Open

Android Auto Change Title Color #198

trandung1601 opened this issue Jul 4, 2024 · 0 comments
Labels

Comments

@trandung1601
Copy link

trandung1601 commented Jul 4, 2024

I'm new to working with Android Auto and am using react-native-carplay to develop the pane template. I'm having an issue with text styles and don't have any idea how to change the title color. Does anyone know how to set the color for the detailText title?

Here is the Pane template config:

`

  import { PaneTemplate } from "react-native-carplay";
  export const paneTemplate = new PaneTemplate({
      pane: {
          items: [
              {
                  text: 'Pane',
                  detailText: 'Detail Text',
              },
          ],
      },
      title: 'Pane',
      headerAction: { type: 'back' },
  });

`

Android Auto module:

`

  import { CarPlay } from 'react-native-carplay';
  import { paneTemplate } from './templates/pane.template';
 
  export function AndroidAutoModule() {
    console.debug('[AndroidAutoModule]')
    CarPlay.emitter.addListener('didConnect', () => {
      CarPlay.setRootTemplate(paneTemplate);
    });
    CarPlay.emitter.addListener('backButtonPressed', () => {
      CarPlay.popTemplate();
    });
  }

`

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

No branches or pull requests

1 participant