Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Version 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
N0-0NE-Dev committed Feb 27, 2023
1 parent 2b882c8 commit db6dd89
Show file tree
Hide file tree
Showing 15 changed files with 288 additions and 456 deletions.
7 changes: 2 additions & 5 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@ const MyStack = () => {

return (
<Stack.Navigator
initialRouteName={
Storage.contains("provider") && Storage.contains("preferredLanguage")
? "Tab"
: "Startup"
}
initialRouteName={Storage.contains("provider") ? "Tab" : "Startup"}
screenOptions={{
statusBarColor: theme.dark ? "black" : "white",
statusBarStyle: theme.dark ? "light" : "dark",
headerStyle: { backgroundColor: theme.colors.background },
headerTintColor: theme.dark ? "white" : "black",
navigationBarHidden: true,
headerShadowVisible: false,
contentStyle: { backgroundColor: theme.colors.background },
}}
>
<Stack.Screen
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ android {
applicationId 'com.n00nedev.nofasel'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 12
versionName "1.1.2"
versionCode 13
versionName "1.1.3"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://u.expo.dev/7d1af19c-c34d-49ac-97e6-6df726972b22"/>
<meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="1.1.2"/>
<meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="1.1.3"/>
<activity android:name=".MainActivity" android:label="@string/app_name" android:supportsPictureInPicture="true" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode|smallestScreenSize|screenLayout" android:launchMode="singleTask" android:windowSoftInputMode="adjustPan" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
Expand Down
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"expo": {
"name": "NoFasel",
"slug": "no-fasel",
"version": "1.1.2",
"version": "1.1.3",
"sdkVersion": "47.0.0",
"jsEngine": "hermes",
"platforms": [
"android"
],
"android": {
"runtimeVersion": "1.1.2",
"versionCode": 12
"runtimeVersion": "1.1.3",
"versionCode": 13
},
"extra": {
"eas": {
Expand Down
5 changes: 3 additions & 2 deletions src/components/DefaultSettingsButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Pressable } from "react-native";
import { Text, useTheme } from "react-native-paper";
import { MaterialCommunityIcons } from "@expo/vector-icons";

const DefaultSettingsButton = ({ label, onPress, iconName }) => {
const DefaultSettingsButton = ({ label, onPress, iconName, fontSize = 18 }) => {
const theme = useTheme();

return (
Expand All @@ -27,8 +27,9 @@ const DefaultSettingsButton = ({ label, onPress, iconName }) => {
/>
<Text
style={{
fontSize: 18,
fontSize: fontSize,
paddingHorizontal: 25,
fontWeight: "bold",
}}
>
{label}
Expand Down
14 changes: 11 additions & 3 deletions src/components/FeaturedContentCardList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ import React, { useState, useEffect, useRef } from "react";
import FeaturedContentCard from "./FeaturedContentCard";
import * as FileSystem from "expo-file-system";
import { Dimensions, ScrollView } from "react-native";
import { Storage } from "./Storage";

const FeaturedContentCardList = ({ navigation }) => {
const [data, setData] = useState();
const [currentPosition, setCurrentPosition] = useState(0);
const scrollViewRef = useRef();
let filePath = "";

if (Storage.getString("provider") == "fasel") {
filePath = FileSystem.documentDirectory + "featured-content.json";
} else {
filePath = FileSystem.documentDirectory + "hdw-featured-content.json";
}

useEffect(() => {
FileSystem.readAsStringAsync(
FileSystem.documentDirectory + "featured-content.json"
).then((data) => setData(JSON.parse(data)));
FileSystem.readAsStringAsync(filePath).then((data) =>
setData(JSON.parse(data))
);
}, []);

useEffect(() => {
Expand Down
Loading

0 comments on commit db6dd89

Please sign in to comment.