Комментарии:
Here's how I solved the custom font issue, where AppLoading module is deprecated:
import Home from "./screens/Home";
import { useFonts } from "expo-font";
import * as SplashScreen from "expo-splash-screen";
import { useCallback } from "react";
import { View } from "react-native";
SplashScreen.preventAutoHideAsync();
export default function App() {
const [fontsLoaded] = useFonts({
"oswald-bold": require("./assets/fonts/Oswald-Bold.ttf"),
"oswald-regular": require("./assets/fonts/Oswald-Regular.ttf"),
});
const onLayoutRootView = useCallback(async () => {
if (fontsLoaded) {
await SplashScreen.hideAsync();
}
}, [fontsLoaded]);
if (!fontsLoaded) {
return null;
}
return (
<View style={{flex:1}} onLayout={onLayoutRootView}>
<Home />
</View>
);
}
when i add flex=1 the text just goes out of page and is not visible
Ответитьtnx again
Ответить🔥🔥🔥
ОтветитьHi your tutorial just awesome you know both flutter amd react native so which one you recommend?
ОтветитьGreat !
Ответить"the development server returned response error code 500" this is what i get. There is no way to make the global styles work.
Ответитьgetting error: "undefined is not an object (evaluating '__global.default.container')". Any solutions?
ОтветитьThanks, Good Video !! Helped me.
ОтветитьI did the same! I'm glad that the ninja thinks the same :D
ОтветитьSince I've discovered this guy's tutorials I refused to follow anyone else tutorial! Thanks for the content you're sharing, your work is absolutely amazing, I've learnt so much thanks to your channel. The way you teach makes everything easy ! You really deserve more recognition !
ОтветитьI got this error every time. If i dismiss, the app works fine.
fontFamily is not a system font and has not been loaded through Font.loadAsync
Very nice info. I am waiting for this video. Keep up the good work.
ОтветитьHow would you loadasync if you were not using expo?
ОтветитьThank you.Excellent!!!.
And I think no need to import 'StyleSheet' into the about , home and reviewDetails files now.
Broo, Thanks a lot for This informative lessons of you,
Also broo I have a request to You, Broo on your Node Js Tutorial's last episode you promised to do other Node Js related tutorials such as Web Sockets, and Mongose DB congrats to you broo, you did it!!!
It's only one part that you didn't covered and you also promised, the part of UNIT TESTING IN JAVASCRIPT USING MOCHA AND CHAI, Broo as you know unit testing is super important,
So I humbly request for the sake of Others and Me as well, to have a consideration on that important aspect,
It is my hope that my request with be accepted before you
Thanks once again for your crusial help in educating the public !!!!
Hey, I really like this tutorial . I want to ask will there be any tutorial using react navigation, with context api and hooks? thank you
Ответить