Skip to content

Android Auto Change Title Color #198

Open
@trandung1601

Description

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();
    });
  }

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions