create-expo-stack 2.11.10 → 2.11.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,7 @@ const Avatar = React.forwardRef<
31
31
  React.ElementRef<typeof View>,
32
32
  React.ComponentPropsWithoutRef<typeof View> & AvatarRootProps
33
33
  >(({ alt, className, ...viewProps }, ref) => {
34
- const [status, setStatus] = React.useState<AvatarState>('loading');
34
+ const [status, setStatus] = React.useState<AvatarState>('error');
35
35
  return (
36
36
  <RootContext.Provider value={{ alt, status, setStatus }}>
37
37
  <View
@@ -74,6 +74,10 @@ const AvatarImage = React.forwardRef<
74
74
  ) => {
75
75
  const { alt, setStatus, status } = useRootContext();
76
76
 
77
+ React.useLayoutEffect(() => {
78
+ setStatus('loading');
79
+ }, []);
80
+
77
81
  const onLoad = React.useCallback(
78
82
  (e: NativeSyntheticEvent<ImageLoadEventData>) => {
79
83
  setStatus('loaded');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-expo-stack",
3
- "version": "2.11.10",
3
+ "version": "2.11.11",
4
4
  "description": "CLI tool to initialize a React Native application with Expo",
5
5
  "repository": {
6
6
  "type": "git",