Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into rn-64
Browse files Browse the repository at this point in the history
  • Loading branch information
redreceipt authored Oct 21, 2021
2 parents 635ae38 + 3d65272 commit cbaa6b6
Show file tree
Hide file tree
Showing 8 changed files with 203 additions and 227 deletions.
2 changes: 1 addition & 1 deletion apollos-church-api/apollos.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.34.0",
"version": "2.35.0",
"environment": "api"
}
36 changes: 18 additions & 18 deletions apollos-church-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@
"node": ">=14"
},
"dependencies": {
"@apollosproject/config": "^2.34.0",
"@apollosproject/data-connector-algolia-search": "^2.34.0",
"@apollosproject/data-connector-analytics": "^2.34.0",
"@apollosproject/data-connector-bible": "^2.34.0",
"@apollosproject/data-connector-church-online": "^2.34.0",
"@apollosproject/data-connector-cloudinary": "^2.34.0",
"@apollosproject/data-connector-onesignal": "^2.34.0",
"@apollosproject/data-connector-passes": "^2.34.0",
"@apollosproject/data-connector-postgres": "^2.34.0",
"@apollosproject/data-connector-redis-cache": "^2.34.0",
"@apollosproject/data-connector-rock": "^2.34.0",
"@apollosproject/data-connector-twilio": "^2.34.0",
"@apollosproject/data-schema": "^2.34.0",
"@apollosproject/rock-apollo-data-source": "^2.34.0",
"@apollosproject/server-core": "^2.34.0",
"@apollosproject/config": "^2.35.0",
"@apollosproject/data-connector-algolia-search": "^2.35.0",
"@apollosproject/data-connector-analytics": "^2.35.0",
"@apollosproject/data-connector-bible": "^2.35.0",
"@apollosproject/data-connector-church-online": "^2.35.0",
"@apollosproject/data-connector-cloudinary": "^2.35.0",
"@apollosproject/data-connector-onesignal": "^2.35.0",
"@apollosproject/data-connector-passes": "^2.35.0",
"@apollosproject/data-connector-postgres": "^2.35.0",
"@apollosproject/data-connector-redis-cache": "^2.35.0",
"@apollosproject/data-connector-rock": "^2.35.0",
"@apollosproject/data-connector-twilio": "^2.35.0",
"@apollosproject/data-schema": "^2.35.0",
"@apollosproject/rock-apollo-data-source": "^2.35.0",
"@apollosproject/server-core": "^2.35.0",
"apollo-server": "^2.24.1",
"apollo-server-express": "2.14.2",
"color": "3.0.0",
Expand All @@ -42,9 +42,9 @@
"randomcolor": "0.5.3"
},
"devDependencies": {
"@apollosproject/apollo-server-env-mock": "^2.34.0",
"@apollosproject/babel-preset-apollos": "^2.34.0",
"@apollosproject/eslint-config": "^2.34.0",
"@apollosproject/apollo-server-env-mock": "^2.35.0",
"@apollosproject/babel-preset-apollos": "^2.35.0",
"@apollosproject/eslint-config": "^2.35.0",
"@babel/cli": "^7.4.5",
"@babel/core": "^7.4.5",
"@babel/node": "^7.7.4",
Expand Down
2 changes: 1 addition & 1 deletion apolloschurchapp/apollos.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.34.0",
"version": "2.35.0",
"environment": "client"
}
6 changes: 3 additions & 3 deletions apolloschurchapp/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ platform :ios do
app_store_connect_api_key(key_filepath: "ios/apollos.p8", in_house: false)
deliver(
skip_binary_upload: true,
skip_screenshots: true,
skip_metadata: true,
skip_screenshots: false,
skip_metadata: false,
submit_for_review: true,
automatic_release: true,
automatic_release: false,
submission_information: {
add_id_info_uses_idfa: false
},
Expand Down
4 changes: 2 additions & 2 deletions apolloschurchapp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ PODS:
- React-jsi (= 0.64.2)
- React-perflogger (= 0.64.2)
- React-jsinspector (0.64.2)
- react-native-apollos-player (2.34.0):
- react-native-apollos-player (2.35.0):
- React
- react-native-config (0.11.7):
- React
Expand Down Expand Up @@ -659,7 +659,7 @@ SPEC CHECKSUMS:
React-jsi: 67747b9722f6dab2ffe15b011bcf6b3f2c3f1427
React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3
React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae
react-native-apollos-player: f503cf8f6d4a582f02d00909134ddc0fd9bed4a0
react-native-apollos-player: af0449934fae6e2a84fbe2299692c8ecbefca01f
react-native-config: 55548054279d92e0e4566ea15a8b9b81028ec342
react-native-geolocation: c956aeb136625c23e0dce0467664af2c437888c9
react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a
Expand Down
32 changes: 16 additions & 16 deletions apolloschurchapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@
"dependencies": {
"@apollo/client": "3.3.20",
"@apollo/react-hooks": "^3.1.3",
"@apollosproject/config": "^2.34.0",
"@apollosproject/config": "^2.35.0",
"@apollosproject/react-native-airplay-btn": "^0.2.0",
"@apollosproject/ui-analytics": "^2.34.0",
"@apollosproject/ui-auth": "^2.34.0",
"@apollosproject/ui-connected": "^2.34.0",
"@apollosproject/ui-fragments": "^2.34.0",
"@apollosproject/ui-htmlview": "^2.34.0",
"@apollosproject/ui-kit": "^2.34.0",
"@apollosproject/ui-mapview": "^2.34.0",
"@apollosproject/ui-media-player": "^2.34.0",
"@apollosproject/ui-notifications": "^2.34.0",
"@apollosproject/ui-onboarding": "^2.34.0",
"@apollosproject/ui-passes": "^2.34.0",
"@apollosproject/ui-prayer": "^2.34.0",
"@apollosproject/ui-scripture": "^2.34.0",
"@apollosproject/ui-test-utils": "^2.34.0",
"@apollosproject/ui-analytics": "^2.35.0",
"@apollosproject/ui-auth": "^2.35.0",
"@apollosproject/ui-connected": "^2.35.0",
"@apollosproject/ui-fragments": "^2.35.0",
"@apollosproject/ui-htmlview": "^2.35.0",
"@apollosproject/ui-kit": "^2.35.0",
"@apollosproject/ui-mapview": "^2.35.0",
"@apollosproject/ui-media-player": "^2.35.0",
"@apollosproject/ui-notifications": "^2.35.0",
"@apollosproject/ui-onboarding": "^2.35.0",
"@apollosproject/ui-passes": "^2.35.0",
"@apollosproject/ui-prayer": "^2.35.0",
"@apollosproject/ui-scripture": "^2.35.0",
"@apollosproject/ui-test-utils": "^2.35.0",
"@gorhom/bottom-sheet": "3.4.1",
"@react-native-community/async-storage": "^1.5.1",
"@react-native-community/datetimepicker": "^3.0.0",
Expand Down Expand Up @@ -113,7 +113,7 @@
"yup": "0.26.6"
},
"devDependencies": {
"@apollosproject/eslint-config": "^2.34.0",
"@apollosproject/eslint-config": "^2.35.0",
"@babel/core": "^7.14.6",
"@babel/runtime": "^7.14.6",
"@bam.tech/react-native-make": "^3.0.3",
Expand Down
76 changes: 26 additions & 50 deletions apolloschurchapp/src/tabs/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { Image, View } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import { createNativeStackNavigator } from 'react-native-screens/native-stack';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import {
NavigationService,
withTheme,
useTheme,
Icon,
Touchable,
} from '@apollosproject/ui-kit';
Expand All @@ -33,70 +33,46 @@ const HeaderLogo = withTheme(({ theme }) => ({
: require('./wordmark.dark.png'),
}))(Image);

const SearchIcon = withTheme(({ theme: { colors, sizing: { baseUnit } } }) => ({
name: 'search',
size: baseUnit * 2,
fill: colors.primary,
}))(Icon);

const SearchButton = ({ onPress }) => (
<Touchable onPress={onPress}>
<SearchIcon />
</Touchable>
);

SearchButton.propTypes = {
onPress: PropTypes.func,
};

const Avatar = withTheme(({ theme: { sizing: { baseUnit } } }) => ({
size: 'xsmall',
containerStyle: {
paddingBottom: baseUnit * 0.25,
},
}))(UserAvatarConnected);

const ProfileButton = ({ onPress }) => (
<Touchable onPress={onPress}>
<View>
<Avatar />
</View>
</Touchable>
);

ProfileButton.propTypes = {
onPress: PropTypes.func,
};

const HeaderLeft = () => {
const ProfileButton = () => {
const navigation = useNavigation();
return (
<ProfileButton
<Touchable
onPress={() => {
navigation.navigate('UserSettingsNavigator');
}}
/>
>
<View>
<UserAvatarConnected size="xsmall" />
</View>
</Touchable>
);
};
const HeaderCenter = () => <HeaderLogo source={require('./wordmark.png')} />;
const HeaderRight = () => {

const SearchButton = () => {
const navigation = useNavigation();
const theme = useTheme();
return (
<SearchButton
<Touchable
onPress={() => {
navigation.navigate('Search');
}}
/>
>
<Icon
name="search"
size={theme.sizing.baseUnit * 2}
fill={theme.colors.primary}
/>
</Touchable>
);
};

// we nest stack inside of tabs so we can use all the fancy native header features
const HomeTab = createFeatureFeedTab({
screenOptions: {
headerHideShadow: true,
headerCenter: HeaderCenter,
headerRight: HeaderRight,
headerLeft: HeaderLeft,
headerCenter: HeaderLogo,
headerRight: SearchButton,
headerLeft: ProfileButton,
headerLargeTitle: false,
},
tabName: 'Home',
Expand All @@ -105,23 +81,23 @@ const HomeTab = createFeatureFeedTab({

const ReadTab = createFeatureFeedTab({
options: {
headerLeft: HeaderLeft,
headerLeft: ProfileButton,
},
tabName: 'Read',
feedName: 'READ',
});

const WatchTab = createFeatureFeedTab({
options: {
headerLeft: HeaderLeft,
headerLeft: ProfileButton,
},
tabName: 'Watch',
feedName: 'WATCH',
});

const PrayTab = createFeatureFeedTab({
options: {
headerLeft: HeaderLeft,
headerLeft: ProfileButton,
},
tabName: 'Pray',
feedName: 'PRAY',
Expand All @@ -143,7 +119,7 @@ const ConnectTabStackNavigator = () => (
name={'Connect'}
component={CustomConnectScreen}
options={{
headerLeft: HeaderLeft,
headerLeft: ProfileButton,
}}
/>
</ConnectTabStack.Navigator>
Expand Down
Loading

0 comments on commit cbaa6b6

Please sign in to comment.