adrianhajdin / aora Goto Github PK
View Code? Open in Web Editor NEWBuild your first mobile application
Home Page: https://jsmastery.pro
Build your first mobile application
Home Page: https://jsmastery.pro
so after pasting and importing useEffects from readme file i got this error
The Error description is:
This error is located at:
in RootLayout (at useScreens.js:112)
in Unknown (at useScreens.js:116)
in Suspense (at useScreens.js:115)
in Route (at useScreens.js:131)
in Route() (at ExpoRoot.js:128)
in RNCSafeAreaProvider (at SafeAreaContext.tsx:92)
in SafeAreaProvider (at ExpoRoot.js:57)
in wrapper (at ExpoRoot.js:127)
in EnsureSingleNavigator (at BaseNavigationContainer.tsx:433)
in BaseNavigationContainer (at NavigationContainer.native.js:105)
in ThemeProvider (at NavigationContainer.native.js:104)
in NavigationContainerInner (at ExpoRoot.js:123)
in ContextNavigator (at ExpoRoot.js:66)
in ExpoRoot (at qualified-entry.js:20)
in App (created by ErrorOverlay)
in ErrorToastContainer (created by ErrorOverlay)
in ErrorOverlay (at withDevTools.js:18)
in withDevTools(ErrorOverlay) (at renderApplication.js:57)
in RCTView (at View.js:116)
in View (at AppContainer.js:127)
in RCTView (at View.js:116)
in View (at AppContainer.js:155)
in AppContainer (at renderApplication.js:50)
in main(RootComponent) (at renderApplication.js:67), js engine: hermes
I have installed all the necessary dependencies for nativewindcss with tailwindcss version ^3.3.2.
I don't know why nativewind is not working on the app.
I also recreated the whole app and after installing the nativewind and doing changes in tailwind.config.js I have also restarted the development server of the app.
But still no luck. 🥲
I'm getting this following error.
The below error message is coming after the prerequisite completion and running the app on mobile.
ERROR TypeError: Cannot read property 'useMemo' of null
This error is located at:
in ContextNavigator (at ExpoRoot.js:64)
in ExpoRoot (at qualified-entry.js:20)
in App (created by ErrorOverlay)
in ErrorToastContainer (created by ErrorOverlay)
in ErrorOverlay (at withDevTools.js:18)
in withDevTools(ErrorOverlay) (at renderApplication.js:57)
in RCTView (at View.js:116)
in View (at AppContainer.js:127)
in RCTView (at View.js:116)
in View (at AppContainer.js:155)
in AppContainer (at renderApplication.js:50)
in main(RootComponent) (at renderApplication.js:67), js engine: hermes
This error is located at:
in ContextNavigator (at ExpoRoot.js:64)
in ExpoRoot (at qualified-entry.js:20)
in App (created by ErrorOverlay)
in ErrorToastContainer (created by ErrorOverlay)
in ErrorOverlay (at withDevTools.js:18)
in withDevTools(ErrorOverlay) (at renderApplication.js:57)
in RCTView (at View.js:116)
in View (at AppContainer.js:127)
in RCTView (at View.js:116)
in View (at AppContainer.js:155)
in AppContainer (at renderApplication.js:50)
in main(RootComponent) (at renderApplication.js:67), js engine: hermes
When a video is played on the Home screen in the VideoCard component, the ListHeaderComponent disappears
I got this error "Error: TypeError: Cannot read property '$id' of undefined " and now i implemented if else condition to check the uploaded file if it exists or not..... after that i got the else statement that the file upload failed.
Currently there another issue with appwrite which is "video and thumbnail are required" even though i have uploaded them from my local phone storage, I can't still make the file submission to the database
I am also getting cannot read property 'username' of null in the home.jsx page
My app keeps on taking a longer time to play the video. I am in Africa and I made my region Frankurt.😪😪
The URLs for the dummy video's thumbnails are invalid.
the font is not loading properly, the next warning shows up when running the app and adding font-psemibold to CustomButton
WARN fontFamily "Poppins-SemiBold" is not a system font and has not been loaded through expo-font.
note: i copied the code from the original repo and the font folder is in the correct place ./assets/fonts/Poppins-Bold.ttf
Everything going pretty good with this application, But at the time stamp of 2:40:36
, When i gave the same code as same him , at while supplying the video
as parameter to the component , mainly while at the creator: {username, avatar}
I was getting this below mentioned error . . . .
When I remove that particular part , ie thaat creator
code part , the code works pretty fine . . .
can some one give me the reason , for what causes this error ? and help me to solve this error ?
When I click on sign up button createUser function I'm getting AppwriteExcpetion Error Sometimes it works and it doesn't I need help in this
if someone else facing the same warning issue you need to remove these "{' '}". Your welcome.
Has anyone encountered that issue recently? Been following the guide step-by-step and at the timestamp 3:16:54 of the video it happened in my case.
I managed to "fix" the problem by creating a fulltext index in videos
database and assigning it to title
attribute but I'm not 100% sure if it is a correct approach
how to fix this whenever i try to signup the page this error occur
Getting Render Error with Expo v51
Module "23" is missing from the asset registry
Got to the video portion at around the 3 hour mark and fonud that the videos weren't loading. I added the onError property to the
The server is not correctly configured. - The AVPlayerItem instance has failed with the error code -11850 and domain "AVFoundationErrorDomain"
Here's the code I have related to this error
import { ResizeMode, Video } from "expo-av";
.
.
.
<Video
source={{ uri: item.video}}
className="w-52 h-72 rounded-[33px] mt-3 bg-white/10"
resizeMode={ResizeMode.CONTAIN}
useNativeControls
shouldPlay
onPlaybackStatusUpdate={(status) => {
if (status.didJustFinish) {
setPlay(false);
}
}}
onError={(error) => {
console.error("Video error: ", error); // Log the error
}}
/>
I think it's my device but not sure how to fix it
the method for signUp works perfectly and also in the database the user is being added but while trying to login using the same credentials i get this error "Creation of a session is prohibited when a session is active" which wont show even in the terminal where it have occurred
here is the response for the video link and thumbnail link, is there a way not upgrade and use it?
{"message":"Bandwidth limit for your organization has exceeded. Please upgrade to higher plan or update budget cap.","code":402,"type":"bandwidth_limit_exceeded","version":"0.13.6"}
` const { isLoading, isLoggedIn } = useGlobalContext();
if (!isLoading && isLoggedIn) return ;`
This error comes from the index.jsx file when we are trying to set global state so that when you close the app you remain loggedIn but It does not work for me. I will include my Index.jsx and Globalprovider file.
Index.jsx:
`
import { Link, Redirect, router } from "expo-router";
import { StatusBar } from "expo-status-bar";
import { ScrollView, Text, View, Image } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import { images } from "../constants";
import CustomButton from "../components/CustomButton";
import { useGlobalContext, GlobalProvider } from "../context/GlobalProvider";
export default function App() {
const { isLoading, isLoggedIn } = useGlobalContext();
if (!isLoading && isLoggedIn) return ;
return (
<ScrollView contentContainerStyle={{ height: "100%" }}>
Discover endless possibilities with{" "}
Aora
<Image
source={images.path}
className="w-[136px] h-[15px] absolute -bottom-2 -right-8"
resizeMode="contain"
/>
</View>
<Text className="text-sm font-pregular text-gray-100 mt-7 text-center">
Where Creativity meets innovation: embark on a journey of limitless
exploration with Aora
</Text>
<CustomButton
title="Continue with Email"
handlePress={() => router.push("/sign-in")}
containerStyles="w-full mt-7"
/>
</View>
</ScrollView>
<StatusBar backgroundColor="#161622" style="light" />
</SafeAreaView>
);
}
`
Globalprovider:
`import { createContext, useContext, useEffect, useState } from "react";
import { getCurrentUser } from "../lib/appwrite";
const GlobalContext = createContext();
export const useGlobalContext = () => useContext(GlobalContext);
const GlobalProvider = ({ children }) => {
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [user, setUser] = useState(null);
const [isLoading, setIsLoading] = useState(true);
useEffect(() => {
getCurrentUser()
.then((res) => {
if (res) {
setIsLoggedIn(true);
setUser(res);
} else {
setIsLoggedIn(false);
setUser(null);
}
})
.catch((error) => {
console.log(error);
})
.finally(() => {
setIsLoading(false);
});
}, []);
return (
<GlobalContext.Provider
value={{ isLoggedIn, setIsLoggedIn, user, setUser, isLoading }}
>
{children}
</GlobalContext.Provider>
);
};
export default GlobalProvider;
`
I got an error in home.jsx in flatlist.
Error
Property 'setUser' doesn't exist
While trying to login to account getting this error after account creation.
Also not getting to home screen also after registration.
The video urls given for sample videos aren't playing in finished app or new tab, on opening this link in new tab for eg:
URL: https://cloud.appwrite.io/v1/storage/buckets/660d0e59e293896f1eaf/files/660f004955f51e7e3212/view?project=660d0e00da0472f3ad52
Response:
{
"message": "Bandwidth limit for your organization has exceeded. Please upgrade to higher plan or update budget cap.",
"code": 402,
"type": "bandwidth_limit_exceeded",
"version": "0.12.148"
}
Hello Guys, I would like to bring to your attention some challenges I've encountered while building the project by following the tutorial:
1. Videos Collection Update Issue:
Upon review, I've noticed that the videos collection is not updating as expected. Despite attempts to make modifications, the changes are not reflecting in the collection.
2. Videos Collection Attribute Update Problem:
Additionally, I've encountered difficulties updating attributes within the videos collection. Despite efforts to modify attributes, they remain unchanged, impacting the integrity of our data.
3. Videos Collection Index Creation Failure:
Furthermore, I've observed that the indexes for the videos collection are not being created. This is hindering our ability to efficiently access and manage the data within the collection.
I kindly request your assistance in addressing these issues promptly. If further information or clarification is needed, please do not hesitate to reach out.
Thank you for your attention to this matter.
I was doing everything fine, until at the timestamp of 1:45:25 , where when I hit the Sign In button, instead of showing me the datas in as in the log , I was shown with the error mentioned below , could anyone help me to solve this problem ?
It may be a simple problem , but since I'm new ,can't able to figure that on my own . . .
you have written jsmMastry in username in home instead you can can import Globalcontext user and put user.username in place of JSMastery
I get AppwriteException: Network request failed, when I click signup at time: 1:44:19.
Can someone help?
I created an expo app and it's running completely fine in expo go app but when I make build (apk) using the command
eas build -p android --profile preview
and install it on my phone. It opens but closes automatically after login . I've tried multiple times so please help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.