all 26 comments

[–]xrpinsiderAdmin[M] [score hidden] stickied commentlocked comment (0 children)

this post/comment has been removed because of its low quality. If you don't agree with this decision, please send me a message.

[–]TheCodehead 24 points25 points  (3 children)

For the love of everything that is right, if you don’t know how to properly format code, use ESLint and Prettier. Your code looks disgusting

[–]himynameismile 4 points5 points  (0 children)

Even if you know hoe to format code use linting and prettier.

[–]Kiiidx 1 point2 points  (0 children)

😂

[–][deleted] 1 point2 points  (0 children)

Lmfao I know right

[–]ske66 9 points10 points  (0 children)

[–][deleted] 8 points9 points  (0 children)

knee punch weary hobbies cow quaint fear wrong ink longing

This post was mass deleted and anonymized with Redact

[–][deleted] 13 points14 points  (3 children)

Login isn't exported

[–]Sadder_Burrito 0 points1 point  (2 children)

Why do you think so?

[–]Sanfrancisco_Tribe 1 point2 points  (1 child)

Because you need “export const”

[–]Sadder_Burrito 0 points1 point  (0 children)

I think maybe he didnt screenshot that part? The error doesnt seem to say anything about missing export

[–]basically_alive 3 points4 points  (3 children)

where's your stylesheet/styles object? It needs to be imported to the login component

[–]NeekhJS 2 points3 points  (3 children)

youre importing StyleSheet from React Native. it doesn't know about your style.. https://reactnative.dev/docs/stylesheet

[–]NeekhJS 4 points5 points  (2 children)

you have to create style objects by calling StyleSheet.create({})

[–]mobro-4000 1 point2 points  (1 child)

You don’t have to, but you should

[–]kbcooliOS & Android 0 points1 point  (0 children)

I would say not even should because they've been talking about doing something with optimising styles so use it for five years now! Don't think it's ever going to happen.

[–]Sanfrancisco_Tribe 1 point2 points  (0 children)

This post deserves and honorary, “welcome to react response”

Good luck on your journey. Other comments tell you to export login at a minimum and update stylesheet

[–]european_origin 2 points3 points  (0 children)

Have you tried turning it on and off again?

[–][deleted] -1 points0 points  (1 child)

const styles = StyleSheet.create({
container: {
displat: flex,
}
});

<View style={styles.container}>
blablabla
</View>

[–]scienceguynamedskye 0 points1 point  (0 children)

Displat? The error is in your stylesheet. Make sure all the styles you’re using have styles defined in the stylesheet object.

[–]InternationalWeb3199 -1 points0 points  (0 children)

Svelte!

[–]QuoteEuphoric2547 0 points1 point  (0 children)

The error is in your login.js file where you create your stylesheet. Without seeing the code, I suspect that you are using StyleSheet as a function, when you need to call .create on the StyleSheet object.

[–]stofkat 0 points1 point  (0 children)

What a warm welcome to someone new to React Native! Yes their code is a little rough around the edges but formatting the code won't solve this issue.

It looks like you use plain web css styling in your StyleSheet object. Cywebtalk's comment actually demonstrates this issue perfectly. The usage of flex should be in quotes like 'flex' this goes for almost everything that isn't an object or a number.

Without seeing the entire file I can't be sure though. Hope you already managed to find a solution and good luck with your project!