Skip to content

Commit

Permalink
Merge pull request #115 from newrelic/release_1.3.0
Browse files Browse the repository at this point in the history
Release 1.3.0
  • Loading branch information
ndesai-newrelic authored Jul 21, 2023
2 parents 68a6873 + f8d4021 commit 39944da
Show file tree
Hide file tree
Showing 122 changed files with 2,014 additions and 2,153 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.3.0

### New in this release
* Upgraded native Android agent to v7.0.0
* Added support for React Native 0.72.0
* Included support for Expo 49

## 1.2.1

### New in this release
Expand Down
6 changes: 0 additions & 6 deletions NewRelicExampleApp/.buckconfig

This file was deleted.

66 changes: 0 additions & 66 deletions NewRelicExampleApp/.flowconfig

This file was deleted.

1 change: 0 additions & 1 deletion NewRelicExampleApp/.node-version

This file was deleted.

1 change: 0 additions & 1 deletion NewRelicExampleApp/.ruby-version

This file was deleted.

29 changes: 0 additions & 29 deletions NewRelicExampleApp/App.js

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,15 @@ local.properties
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand All @@ -62,4 +58,6 @@ buck-out/
# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/
NewRelicExampleApp/yarn.lock

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
1 change: 1 addition & 0 deletions NewRelicExampleApp/React-Native-Test-App/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
File renamed without changes.
File renamed without changes.
139 changes: 139 additions & 0 deletions NewRelicExampleApp/React-Native-Test-App/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/

import React from 'react';
import type {PropsWithChildren} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import UtilsScreen from './screens/UtilsScreen';
import TestScreen from './screens/TestScreen';
import NewsFeedScreen from './screens/NewsFeedScreen';
import BrowserScreen from './screens/BrowserScreen';
import { RootStackParamList } from './Browser';

const Stack = createNativeStackNavigator<RootStackParamList>();
const Tab = createBottomTabNavigator();

import {
StyleSheet,
Text,
useColorScheme,
View,
} from 'react-native';

import {
Colors,
} from 'react-native/Libraries/NewAppScreen';

type SectionProps = PropsWithChildren<{
title: string;
}>;


function Section({children, title}: SectionProps): JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.sectionContainer}>
<Text
style={[
styles.sectionTitle,
{
color: isDarkMode ? Colors.white : Colors.black,
},
]}>
{title}
</Text>
<Text
style={[
styles.sectionDescription,
{
color: isDarkMode ? Colors.light : Colors.dark,
},
]}>
{children}
</Text>
</View>
);
}


const Home = () => {
return (
<>
<Tab.Navigator >
<Tab.Screen
name="Tests"
component={TestScreen}
options={
{
headerShown: false,
}
}
/>
<Tab.Screen
name="Utils"
component={UtilsScreen}
options={
{
headerShown: false,
}
}
/>
<Tab.Screen
name="News Feed"
component={NewsFeedScreen}
options={
{
headerShown: false,
}
}
/>
</Tab.Navigator>
</>
);
};

function App(): JSX.Element {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={Home}
options={{title: 'New Relic Example App'}}
/>
<Stack.Screen
name="Browser"
component={BrowserScreen}
options={{title: 'Web View'}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}

const styles = StyleSheet.create({
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
},
highlight: {
fontWeight: '700',
},
});

export default App;
8 changes: 8 additions & 0 deletions NewRelicExampleApp/React-Native-Test-App/Browser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export type RootStackParamList = {
Browser: {
title: string;
url: string;
};
Home: {
};
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.5'
ruby '>= 2.6.10'

gem 'cocoapods', '~> 1.11', '>= 1.11.2'
gem 'cocoapods', '>= 1.11.3'
Loading

0 comments on commit 39944da

Please sign in to comment.