Skip to content

Commit

Permalink
fix: fix mistakes in example app
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekstosio committed Jun 3, 2024
1 parent 3188d92 commit ee2d373
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions 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 @@ -75,7 +75,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
3 changes: 2 additions & 1 deletion app/src/examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import WorkletFactoryCrash from './WorkletFactoryCrashExample';
import RuntimeTestsExample from './RuntimeTests/RuntimeTestsExample';
import HabitsExample from './LayoutAnimations/HabitsExample';
import MemoExample from './MemoExample';
import PerformanceMonitorExample from './PerfomanceMonitorExample';
import PerformanceMonitorExample from './PerformanceMonitorExample';
import ScreenTransitionExample from './ScreenTransitionExample';
import ComposedHandlerConditionalExample from './ComposedHandlerConditionalExample';
import ComposedHandlerDifferentEventsExample from './ComposedHandlerDifferentEventsExample';
Expand Down 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 cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"barfoo",
"bfrg",
"bridgeless",
"bokeh",
"chlgm",
"coef",
"collapsable",
Expand Down Expand Up @@ -40,6 +41,8 @@
"runtimes",
"overdamped",
"automagically",
"shareables",
"swipeable",
"threejs",
"nomalized"
],
Expand Down

0 comments on commit ee2d373

Please sign in to comment.