-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from newrelic/release_1.3.0
Release 1.3.0
- Loading branch information
Showing
122 changed files
with
2,014 additions
and
2,153 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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 @@ | ||
18 |
File renamed without changes.
File renamed without changes.
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,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; |
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,8 @@ | ||
export type RootStackParamList = { | ||
Browser: { | ||
title: string; | ||
url: string; | ||
}; | ||
Home: { | ||
}; | ||
}; |
4 changes: 2 additions & 2 deletions
4
NewRelicExampleApp/Gemfile → ...cExampleApp/React-Native-Test-App/Gemfile
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,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' |
Oops, something went wrong.