Skip to content

Commit

Permalink
fix: small bugs in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekstosio committed Jun 10, 2024
1 parent b49c0de commit 7304a33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/common-app/src/examples/ShareableFreezingExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export default function FreezingShareables() {
/>
</View>
<View style={styles.textAndButton}>
<Text style={styles.text}>🤫</Text>
<Text style={styles.text}>⚠️</Text>
<Button
title="Modify converted remote function"
onPress={tryModifyConvertedRemoteFunction}
/>
</View>
<View style={styles.textAndButton}>
<Text style={styles.text}>⚠️</Text>
<Text style={styles.text}>🤫</Text>
<Button
title="Modify converted host object"
onPress={tryModifyConvertedHostObject}
Expand Down Expand Up @@ -82,7 +82,7 @@ export default function FreezingShareables() {
function tryModifyConvertedArray() {
const obj = [1, 2, 3];
makeShareableCloneRecursive(obj);
obj[0] = 2; // should warn beacuse it's frozen
obj[0] = 2; // should warn because it's frozen
}

function tryModifyConvertedRemoteFunction() {
Expand Down
1 change: 1 addition & 0 deletions apps/common-app/src/examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export const EXAMPLES: Record<string, Example> = {
icon: '📺',
title: 'Screen transition',
screen: ScreenTransitionExample,
missingOnFabric: true,
},

// Basic examples
Expand Down
3 changes: 3 additions & 0 deletions packages/react-native-reanimated/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"barfoo",
"barfoo",
"bfrg",
"bokeh",
"bridgeless",
"chlgm",
"coef",
Expand Down Expand Up @@ -42,6 +43,8 @@
"runtimes",
"overdamped",
"automagically",
"shareables",
"swipeable",
"threejs",
"nomalized"
],
Expand Down

0 comments on commit 7304a33

Please sign in to comment.