Skip to content

Commit 94aaf35

Browse files
authored
Merge pull request #16 from aptabase/chore/bump-react
chore: build with react 19
2 parents e15e40d + cf39b51 commit 94aaf35

File tree

11 files changed

+14828
-25671
lines changed

11 files changed

+14828
-25671
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.0
2+
3+
- Support for React 19
4+
15
## 0.3.10
26

37
- Add `dispose` function to explicitly stop a started client

examples/HelloWorldExpo/package-lock.json

Lines changed: 4906 additions & 8890 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/HelloWorldExpo/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12-
"expo": "49.0.16",
13-
"expo-status-bar": "1.7.1",
14-
"react": "18.2.0",
15-
"react-native": "0.72.6"
12+
"@aptabase/react-native": "^0.3.10",
13+
"expo": "~54.0.10",
14+
"expo-status-bar": "~3.0.8",
15+
"react": "19.1.0",
16+
"react-native": "0.81.4"
1617
},
1718
"devDependencies": {
1819
"@babel/core": "^7.20.0"

examples/HelloWorldExpoRouter/app/_layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@ export const unstable_settings = {
2424
SplashScreen.preventAutoHideAsync();
2525

2626
export default function RootLayout() {
27+
init("A-US-0928558097");
2728
const [loaded, error] = useFonts({
2829
SpaceMono: require("../assets/fonts/SpaceMono-Regular.ttf"),
2930
...FontAwesome.font,
3031
});
3132

3233
// Expo Router uses Error Boundaries to catch errors in the navigation tree.
3334
useEffect(() => {
34-
if (error) throw error;
35+
if (error) {
36+
trackEvent("error", { error: error.message });
37+
throw error;
38+
}
3539
}, [error]);
3640

3741
useEffect(() => {

examples/HelloWorldExpoRouter/babel.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ module.exports = function (api) {
33
return {
44
presets: ['babel-preset-expo'],
55
plugins: [
6-
// Required for expo-router
7-
'expo-router/babel',
86
],
97
};
108
};

0 commit comments

Comments
 (0)