Skip to content

Commit

Permalink
Merge pull request #15 from YunsGeek/dev
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
YounesKHENIFER committed Jun 27, 2022
2 parents 4c9f774 + 40ca286 commit 8cf3faf
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- there is more than 200 Reciter
- you can listen to each Reciter
- i hope you like it and give us a ⭐ :)
- link for donwload (universal apk) : https://bit.ly/3DImJsL
- link for donwload (universal apk) : https://bit.ly/quraan-1-0-4
- link for donwload (x86 cpu apk) : https://bit.ly/38ve4yw
- link for donwload (x86_64 cpu apk) : https://bit.ly/3Keb6MT
- link for donwload (arm64-v8a cpu apk) : https://bit.ly/35FIqx4
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
versionName "1.0.4"
}
splits {
abi {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ android.enableJetifier=true
# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.99.0

MYAPP_UPLOAD_STORE_FILE=YOURKEY.keystore
MYAPP_UPLOAD_KEY_ALIAS=YOURKEY
MYAPP_UPLOAD_STORE_PASSWORD=YOURPASSWORD
MYAPP_UPLOAD_KEY_PASSWORD=YOURPASSWORD
MYAPP_UPLOAD_STORE_FILE=quraanplayer.keystore
MYAPP_UPLOAD_KEY_ALIAS=quraanplayer
MYAPP_UPLOAD_STORE_PASSWORD=yunsgeekquraanplayer
MYAPP_UPLOAD_KEY_PASSWORD=yunsgeekquraanplayer



Expand Down
9 changes: 3 additions & 6 deletions src/navigations/BottomNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import NetInfo from '@react-native-community/netinfo';
import InfosScreen from '../screens/InfosScreen';
import DownloadsScreen from '../screens/DownloadsScreen';
import FavoritesScreen from '../screens/FavoritesScreen';
import OfflineScreen from '../components/OfflineScreen';
const Tab = createBottomTabNavigator();

export default function BottomTabs({navigation, route}) {
Expand Down Expand Up @@ -147,11 +146,9 @@ export default function BottomTabs({navigation, route}) {

<Tab.Screen
name="Main"
component={
connected
? StackNavigator
: () => <OfflineScreen setRefresh={setRefresh} />
}
component={() => (
<StackNavigator connected={connected} setRefresh={setRefresh} />
)}
options={{
tabBarLabel: 'الإستماع',
tabBarIcon: ({focused, color, size}) => {
Expand Down
15 changes: 12 additions & 3 deletions src/navigations/StackNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import ReciterScreen from '../screens/ReciterScreen';
import fonts from '../style/fonts';
import {MyLightTheme, MyDarkTheme} from '../style/themes';
import useToggleTheme from '../style/useToggleTheme';
import OfflineScreen from '../components/OfflineScreen';

const Stack = createStackNavigator();

const StackNavigator = () => {
const StackNavigator = ({connected, setRefresh}) => {
const {isDark} = useToggleTheme();
const colors = isDark ? MyDarkTheme.colors : MyLightTheme.colors;

Expand All @@ -38,14 +39,22 @@ const StackNavigator = () => {
title: 'قارئ القرآن',
}}
name="Home"
component={HomeScreen}
component={
connected
? HomeScreen
: () => <OfflineScreen setRefresh={setRefresh} />
}
/>
<Stack.Screen
options={{
headerBackVisible: true,
}}
name="Reciter"
component={ReciterScreen}
component={
connected
? ReciterScreen
: () => <OfflineScreen setRefresh={setRefresh} />
}
/>
<Stack.Screen
name="Player"
Expand Down

0 comments on commit 8cf3faf

Please sign in to comment.