Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
birkir committed Apr 2, 2019
1 parent bf101ce commit 0f7d657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ pod 'react-native-carplay', path: '../node_modules/react-native-carplay'

## Usage

Create one of the following templates
[See full example](https://github.com/birkir/react-native-carplay/blob/master/example/src/App.tsx)

```jsx
import { CarPlay, GridTemplate } from 'react-native-carplay';

const template = new GridTemplate({ /* .. */ });
const template = new GridTemplate();

CarPlay.setRootTemplate(template, false);
CarPlay.setRootTemplate(template);
```

### setRootTemplate
Expand Down

0 comments on commit 0f7d657

Please sign in to comment.