Skip to content

Commit

Permalink
Stating clear that component props can rely on parent props (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsantos07 authored and aksonov committed Aug 8, 2018
1 parent 09a9d67 commit c4ec9a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
## Scene:
The basic routing component for this router, all `<Scene>` components require a `key` prop that must be unique. A parent `<Scene>` must have a `component` as a `prop` as it will act as a grouping component for its children.

All properties of type `React.Component` will receive the same properties available on the Scene.

| Property | Type | Default | Description |
|-----------|----------|----------|--------------------------------------------|
| `key`       | `string` | `required` | Will be used to call screen transition, for example, `Actions.name(params)`. Must be unique. |
Expand Down

0 comments on commit c4ec9a5

Please sign in to comment.