Skip to content

Commit 8b42605

Browse files
committed
docs: Use headerTitle for Redux header components
1 parent 69ecbcd commit 8b42605

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎versioned_docs/version-5.x/redux-integration.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Notice that we wrap our components in a `Provider` like we'd normally do with `r
2424

2525
## Use a component that is `connect`ed in `options`
2626

27-
Create a component, `connect` it to the store, then use that component in the `title`.
27+
Create a component, `connect` it to the store, then use that component in the `headerTitle`.
2828

2929
<samp id="redux-integration" />
3030

@@ -40,7 +40,7 @@ const CounterContainer = connect((state) => ({ value: state.count }))(Counter);
4040
<Screen
4141
name="Test"
4242
component={TestScreen}
43-
options={{ title: () => <CounterContainer /> }}
43+
options={{ headerTitle: () => <CounterContainer /> }}
4444
/>
4545
```
4646

‎versioned_docs/version-6.x/redux-integration.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Notice that we wrap our components in a `Provider` like we'd normally do with `r
2424

2525
## Use a component that is `connect`ed in `options`
2626

27-
Create a component, `connect` it to the store, then use that component in the `title`.
27+
Create a component, `connect` it to the store, then use that component in the `headerTitle`.
2828

2929
<samp id="redux-integration" />
3030

@@ -40,7 +40,7 @@ const CounterContainer = connect((state) => ({ value: state.count }))(Counter);
4040
<Stack.Screen
4141
name="Test"
4242
component={TestScreen}
43-
options={{ title: () => <CounterContainer /> }}
43+
options={{ headerTitle: () => <CounterContainer /> }}
4444
/>
4545
```
4646

0 commit comments

Comments
 (0)