Skip to content

Commit 27d8ec0

Browse files
authored
fix: skip placeholder phase when glyph metrics are cached (#8)
Fixes #7
1 parent 9551a44 commit 27d8ec0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/number-flow-react-native/src/native/NumberFlow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const NumberFlow = ({
166166
const maskBottom = adaptiveMask.bottom;
167167
const { expansionTop, expansionBottom } = adaptiveMask;
168168

169-
const [slotsReady, setSlotsReady] = useState(false);
169+
const [slotsReady, setSlotsReady] = useState(!!metrics);
170170
const metricsReady = !!metrics;
171171

172172
useEffect(() => {

0 commit comments

Comments
 (0)