React Native Tutorial  #18 - Global Styles

React Native Tutorial #18 - Global Styles

Net Ninja

4 года назад

80,150 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@israelikechukwu9280
@israelikechukwu9280 - 13.07.2023 21:07

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>
);
}

Ответить
@abhishekgadewar4616
@abhishekgadewar4616 - 09.07.2023 16:40

when i add flex=1 the text just goes out of page and is not visible

Ответить
@afro_habesha
@afro_habesha - 12.04.2023 14:41

tnx again

Ответить
@manoj-k
@manoj-k - 21.11.2021 04:53

🔥🔥🔥

Ответить
@omprakash5294
@omprakash5294 - 15.10.2021 18:54

Hi your tutorial just awesome you know both flutter amd react native so which one you recommend?

Ответить
@travel_worldwide_365
@travel_worldwide_365 - 16.05.2021 18:25

Great !

Ответить
@abdelaesus6678
@abdelaesus6678 - 12.05.2021 05:40

"the development server returned response error code 500" this is what i get. There is no way to make the global styles work.

Ответить
@angelafamera6573
@angelafamera6573 - 19.03.2021 18:27

getting error: "undefined is not an object (evaluating '__global.default.container')". Any solutions?

Ответить
@mmhgarcia
@mmhgarcia - 10.09.2020 16:09

Thanks, Good Video !! Helped me.

Ответить
@cedrickvstheworld1810
@cedrickvstheworld1810 - 30.08.2020 20:07

I did the same! I'm glad that the ninja thinks the same :D

Ответить
@mimimumu8652
@mimimumu8652 - 18.07.2020 02:40

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 !

Ответить
@saurabhjain2161
@saurabhjain2161 - 29.06.2020 22:32

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

Ответить
@ravibhati9270
@ravibhati9270 - 12.05.2020 19:09

Very nice info. I am waiting for this video. Keep up the good work.

Ответить
@sidharthpunathil
@sidharthpunathil - 07.04.2020 00:25

How would you loadasync if you were not using expo?

Ответить
@jayanisumudini6662
@jayanisumudini6662 - 05.04.2020 13:53

Thank you.Excellent!!!.
And I think no need to import 'StyleSheet' into the about , home and reviewDetails files now.

Ответить
@1900s_forreal
@1900s_forreal - 16.12.2019 17:14

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 !!!!

Ответить
@pranaydas7382
@pranaydas7382 - 16.12.2019 17:01

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

Ответить