Skip to content

Commit

Permalink
docs: add key attribute to react-native components (#138)
Browse files Browse the repository at this point in the history
added 'key' attribute to the react-native components holding DIDs in the example code.
  • Loading branch information
ramizqazi committed Jul 7, 2023
1 parent e2fd87d commit cb2206d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/react_native_tutorials/react_native_2_resolve_dids.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const App = () => {
<View style={{ marginBottom: 50, marginTop: 20 }}>
{identifiers && identifiers.length > 0 ? (
identifiers.map((id: IIdentifier) => (
<Button onPress={() => resolveDID(id.did)} title={id.did} />
<Button key={id.did} onPress={() => resolveDID(id.did)} title={id.did} />
))
) : (
<Text>No identifiers created yet</Text>
Expand Down

0 comments on commit cb2206d

Please sign in to comment.