Real world adoption challenges
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Documentazione
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react-native
- Ambito
- authentication, documentation, mobile
Direzione di ricerca
Non è stato identificato alcun file o test. Inizia esaminando il componente funzionale App dell'esempio, l'annidamento di StreamApp, il flusso di recupero del token e la configurazione di react-native-navigation; il lavoro sarebbe completato da una modifica chiaramente circoscritta o da una documentazione che spieghi l'integrazione supportata di autenticazione e navigazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Before I begin, I was pleased with this example. It's one of the better examples I think that has been done.
First of all I know this example probably was not intended or conceived to be a real world example (it loads dummy data) but please humor me as I struggle to adopt it as such.
-
This example uses a functional component as the App. If I'm wrong please let me know. Thereby from my understanding this means that it cannot have state. To set the stage for why I find adoption challenging, the STREAM_API_TOKEN is a user token generated by the backend and handed to the mobile app per: https://getstream.io/react-native-activity-feed/tutorial/. Naturally this value must either be held already in mobile async storage or better be passed back by an API call asynchronously. Yet we just said this example has a stateless nature. I also referred to: https://getstream.github.io/react-native-activity-feed/#introduction in terms of how the StreamApp component must have the feeds nested. Most of my issues have circled around this as I kept trying to figure out how to pass and construct the components together. Surely we shouldn't pass the STREAM_API_TOKEN by props? Right now my stream client in python is returning the user token by my API.
-
It appears if #1 does work in the real world this example suggests that because the feeds are elements of this "parent" component, the navigation must also derive from the parent component. Currently, I'm using react-native-navigation via method call (not expo or anything else) and so this would require that I probably rewrite how my navigation is built. Any suggestions on what my options are within how the react native activity feed must be designed?
-
I certainly faced the issue in this SO question: https://stackoverflow.com/questions/52110253/you-are-publicly-sharing-your-app-secret-do-not-expose-the-app-secret-in-browse. I sort of understand the answer provided, but also do not because at least in a mobile app (not a server client) I would think you would get the user generated token passed back by API. Am I thinking about the generation of the user token entirely wrong? Should generation be done in a function inside the functional component described in question 1? Could that solve my woes about obtaining the token to some extent? I'm not sure because I still feel I would need some level of stateful / asynchronous interaction for authentication via my API.
Thank you for sharing any advice you may have for easier adoption. Cheers!
- Lingua principale
- JavaScript
- Stelle
- 339
- Fork
- 193
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GetStream/react-native-example
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GetStream/react-native-example#52 · 9 commenti · 4 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
GetStream/react-native-example#45 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
GetStream/react-native-example#39 · 2 commenti ·
-
GetStream/react-native-example#38 · 11 commenti · 10 reazioni · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
GetStream/react-native-example#35 · 1 commento ·
Tutte le issue di GetStream/react-native-example
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
web-platform-tests/interop#1455 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
corsairdev/corsair#1764 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100