@dubsdotapp/expo 0.2.72 → 0.2.73

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.tsx +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dubsdotapp/expo",
3
- "version": "0.2.72",
3
+ "version": "0.2.73",
4
4
  "description": "React Native SDK for the Dubs betting platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/src/provider.tsx CHANGED
@@ -113,9 +113,6 @@ export function DubsProvider({
113
113
  });
114
114
  }, [client]);
115
115
 
116
- // Wait for config before rendering so accent color is applied on first paint
117
- if (uiConfig === null) return null;
118
-
119
116
  // Use resolved network (may differ from prop if sandbox was auto-detected)
120
117
  const resolvedConfig = NETWORK_CONFIG[resolvedNetwork];
121
118
  const resolvedRpcUrl = rpcUrlOverride || resolvedConfig.rpcUrl;
@@ -124,6 +121,9 @@ export function DubsProvider({
124
121
  // Connection uses the resolved RPC (auto-switched to devnet for sandbox keys)
125
122
  const connection = useMemo(() => new Connection(resolvedRpcUrl, { commitment: 'confirmed' }), [resolvedRpcUrl]);
126
123
 
124
+ // Wait for config before rendering so accent color is applied on first paint
125
+ if (uiConfig === null) return null;
126
+
127
127
  // Build theme overrides from server config so all SDK components respect the tint
128
128
  const themeOverrides: Partial<DubsTheme> = {};
129
129
  if (uiConfig.accentColor) {