-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'expo' into kw-add-dynamic-default-integrations
- Loading branch information
Showing
79 changed files
with
5,508 additions
and
5,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,30 @@ | |
|
||
## Unreleased | ||
|
||
This release is compatible with `[email protected]` and newer. | ||
|
||
- `withSentryExpoSerializers` changes to `getSentryExpoConfig` ([#3501](https://github.com/getsentry/sentry-react-native/pull/3501)) | ||
- `getSentryExpoConfig` accepts the same parameters as `getDefaultConfig` from `expo/metro-config` and returns Metro configuration | ||
- This also works for EAS Updates (and expo export). Debug ID is generated by `expo/metro-config` and used by Sentry. | ||
|
||
```js | ||
const { getSentryExpoConfig } = require("@sentry/react-native/metro"); | ||
const config = getSentryExpoConfig(config); | ||
``` | ||
|
||
- Resolve Default Integrations based on current platform ([#3465](https://github.com/getsentry/sentry-react-native/pull/3465)) | ||
- Native Integrations are only added if Native Module is available | ||
- Web Integrations only for React Native Web builds | ||
|
||
- Includes fixes from version 5.15.2 | ||
|
||
## 5.15.2 | ||
|
||
### Fixes | ||
|
||
- Stop sending navigation route params for auto-generated transactions, as they may contain PII or other sensitive data ([#3487](https://github.com/getsentry/sentry-react-native/pull/3487)) | ||
- Further details and other strategies to mitigate this issue can be found on our [trouble shooting guide page](https://docs.sentry.io/platforms/react-native/troubleshooting/#routing-transaction-data-contains-sensitive-information) | ||
|
||
## 5.16.0-alpha.2 | ||
|
||
### Features | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
require_relative '../node_modules/react-native/scripts/react_native_pods' | ||
|
||
platform :ios, '12.4' | ||
platform :ios, '13.4' | ||
|
||
target 'RNSentryCocoaTesterTests' do | ||
use_react_native!() | ||
use_react_native!( | ||
:hermes_enabled => false, | ||
) | ||
pod 'RNSentry', :path => '../RNSentry.podspec' | ||
pod 'OCMock', '3.9.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React from 'react'; | ||
import FontAwesome from '@expo/vector-icons/FontAwesome'; | ||
import { Link, Tabs } from 'expo-router'; | ||
import { Pressable } from 'react-native'; | ||
|
||
import Colors from '@/constants/Colors'; | ||
import { useColorScheme } from '@/components/useColorScheme'; | ||
import { useClientOnlyValue } from '@/components/useClientOnlyValue'; | ||
|
||
// You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/ | ||
function TabBarIcon(props: { | ||
name: React.ComponentProps<typeof FontAwesome>['name']; | ||
color: string; | ||
}) { | ||
return <FontAwesome size={28} style={{ marginBottom: -3 }} {...props} />; | ||
} | ||
|
||
export default function TabLayout() { | ||
const colorScheme = useColorScheme(); | ||
|
||
return ( | ||
<Tabs | ||
screenOptions={{ | ||
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint, | ||
// Disable the static render of the header on web | ||
// to prevent a hydration error in React Navigation v6. | ||
headerShown: useClientOnlyValue(false, true), | ||
}}> | ||
<Tabs.Screen | ||
name="index" | ||
options={{ | ||
title: 'Tab One', | ||
tabBarIcon: ({ color }) => <TabBarIcon name="code" color={color} />, | ||
headerRight: () => ( | ||
<Link href="/modal" asChild> | ||
<Pressable> | ||
{({ pressed }) => ( | ||
<FontAwesome | ||
name="info-circle" | ||
size={25} | ||
color={Colors[colorScheme ?? 'light'].text} | ||
style={{ marginRight: 15, opacity: pressed ? 0.5 : 1 }} | ||
/> | ||
)} | ||
</Pressable> | ||
</Link> | ||
), | ||
}} | ||
/> | ||
<Tabs.Screen | ||
name="two" | ||
options={{ | ||
title: 'Tab Two', | ||
tabBarIcon: ({ color }) => <TabBarIcon name="code" color={color} />, | ||
}} | ||
/> | ||
</Tabs> | ||
); | ||
} |
Oops, something went wrong.