-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix example projects #776
Fix example projects #776
Conversation
example/src/WixApp.tsx
Outdated
const viewPredicate: ViewNamePredicate = function customViewNamePredicate( | ||
_event: ComponentDidAppearEvent, | ||
trackedName: string | ||
) { | ||
return 'Custom RNN ' + trackedName; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datadog ReportBranch report: ✅ 0 Failed, 630 Passed, 1 Skipped, 12.1s Total Time |
- Upgrade react-native to version 0.74.6 - Update project dependencies - Fix metro & babel configs - Upgrade gradle version - Increase minSdkVersion & ndkVersion - Update 'WixApp' component to access 'Navigation' object from '@datadog/mobile-react-native-navigation'
…rade - Upgrade react-native to version 0.74.6 - Update project dependencies - Fix metro config - Upgrade gradle version - Increase minSdkVersion & ndkVersion - Remove flipper initialization & refactor 'MainApplication.kt' - Rename 'getBundleURL' to 'bundleURL' in 'AppDelegate.mm'
b1f9c39
to
48bfff3
Compare
48bfff3
to
aeda8cb
Compare
Datadog ReportBranch report: ✅ 0 Failed, 630 Passed, 1 Skipped, 12.22s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I have added a patch for react-native-navigation to solve known Android issues in RN 0.75.x, and I have left comments on some minor improvements for the PR.
includeBuild('../node_modules/@react-native/gradle-plugin') | ||
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
includeBuild('../node_modules/@react-native/gradle-plugin') | |
includeBuild('../node_modules/@react-native/gradle-plugin') | |
example/android/app/build.gradle
Outdated
@@ -125,5 +116,4 @@ dependencies { | |||
} | |||
} | |||
} | |||
|
|||
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) | |||
// apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
example/babel.config.js
Outdated
// plugins: [ | ||
// [ | ||
// 'module-resolver', | ||
// { | ||
// alias: { | ||
// [pakCore.name]: path.join( | ||
// __dirname, | ||
// '../packages/core', | ||
// pakCore.source, | ||
// ), | ||
// [pakNavigation.name]: path.join( | ||
// __dirname, | ||
// '../packages/react-navigation', | ||
// pakNavigation.source, | ||
// ), | ||
// [pakNativeNavigation.name]: path.join( | ||
// __dirname, | ||
// '../packages/react-native-navigation', | ||
// pakNativeNavigation.source, | ||
// ), | ||
// }, | ||
// }, | ||
// ], | ||
// ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's clean this up if not needed anymore 🧹
example/src/WixApp.tsx
Outdated
const viewPredicate: ViewNamePredicate = function customViewNamePredicate( | ||
_event: ComponentDidAppearEvent, | ||
trackedName: string | ||
) { | ||
return 'Custom RNN ' + trackedName; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const viewPredicate: ViewNamePredicate = function customViewNamePredicate( | |
_event: ComponentDidAppearEvent, | |
trackedName: string | |
) { | |
return 'Custom RNN ' + trackedName; | |
}; | |
const viewPredicate: ViewNamePredicate = function viewPredicate( | |
_event: ComponentDidAppearEvent, | |
trackedName: string | |
) { | |
return 'Custom RNN ' + trackedName; | |
}; |
or
const viewPredicate: ViewNamePredicate = function customViewNamePredicate( | |
_event: ComponentDidAppearEvent, | |
trackedName: string | |
) { | |
return 'Custom RNN ' + trackedName; | |
}; | |
const viewPredicate: ViewNamePredicate = ( | |
_event: ComponentDidAppearEvent, | |
trackedName: string | |
) => { | |
return 'Custom RNN ' + trackedName; | |
}; |
2c3ed01
to
893a35e
Compare
What does this PR do?
Fix both example and example-new-architecture and update projects to latest supported react-native version.