Real world adoption challenges
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react-native
- Área
- authentication, documentation, mobile
Línea de trabajo
No se identifica ningún archivo ni prueba. Empieza revisando el componente funcional App del ejemplo, el anidamiento de StreamApp, el flujo de obtención del token y la configuración de react-native-navigation; el trabajo estaría terminado con un cambio claramente delimitado o documentación que explique la integración compatible de autenticación y navegación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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!
- Lenguaje dominante
- JavaScript
- Estrellas
- 339
- Forks
- 193
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de GetStream/react-native-example
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
GetStream/react-native-example#52 · 9 comentarios · 4 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
GetStream/react-native-example#45 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
GetStream/react-native-example#39 · 2 comentarios ·
-
GetStream/react-native-example#38 · 11 comentarios · 10 reacciones · 1 asignado ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
GetStream/react-native-example#35 · 1 comentario ·
Todos los issues de GetStream/react-native-example
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
palladius/rails8-app-on-gcp#145 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
web-platform-tests/interop#1455 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
corsairdev/corsair#1764 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100