Skip to content

Commit 662fbdd

Browse files
authored
docs: use the correct callback function for RCTMyCustomView onChange (#4933)
1 parent 3e10437 commit 662fbdd

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

website/versioned_docs/version-0.77/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

website/versioned_docs/version-0.78/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

website/versioned_docs/version-0.79/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

website/versioned_docs/version-0.80/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

website/versioned_docs/version-0.81/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

website/versioned_docs/version-0.82/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

website/versioned_docs/version-0.83/legacy/native-components-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default function MyCustomView(props: {
306306
[props.onChangeMessage],
307307
);
308308

309-
return <RCTMyCustomView {...props} onChange={props.onChange} />;
309+
return <RCTMyCustomView {...props} onChange={onChange} />;
310310
}
311311
```
312312

0 commit comments

Comments
 (0)