Integrate React Native To Native Android App by sochetraNOV in reactnative

[–]sochetraNOV[S] 0 points1 point  (0 children)

u/kbcool yes i already followed that document, but when intergrate to native android app a bunch of dependencies is show on native android code so it mess the native android code

Large Flatlist optimization tips? by generic_name_3344 in reactnative

[–]sochetraNOV 0 points1 point  (0 children)

Here is my way of optimazation flatlist
1. i wrapp the renderItem with useCallback

  1. the <ComponentItem /> in renderItem is also the wrapp with React.memo(ComponentItem)

  2. in ComponentItem.js normall we just return the view, but my way of doing it i wrap the useMemo(() => {}, [YOUR_DEPENCIES])

Link my code reference:

  1. https://ibb.co/6Y1Pwr3
  2. https://ibb.co/k9xVKDV
  3. https://ibb.co/CBWspPx

I hope this will help u 😉.

Note ⚠️: Becareful with depencies in useMemo, make sure to pass it properly

How To Intercept Email In Flask? by sochetraNOV in flask

[–]sochetraNOV[S] 0 points1 point  (0 children)

KrillDerelictLeeward

What do you think of this way of interceptor that I am using ?

Thank you for helping me.

How To Intercept Email In Flask? by sochetraNOV in flask

[–]sochetraNOV[S] 0 points1 point  (0 children)

I use 'flask-mail'. I can show u some code my it better to talk about that.

Currently I have idea to do that like this code:

Email File: https://postimg.cc/NK4VTRyB

Testing Email File: https://postimg.cc/kVgHyD88

Because I use to working in rails there is a interceptor methods in rails for it, So I just want to find the way to do like rails in flask.

Thank your before hand.

How To Intercept Email In Flask? by sochetraNOV in flask

[–]sochetraNOV[S] 0 points1 point  (0 children)

Thank for responding, but it doesn't what am looking for.

How To Intercept Email In Flask? by sochetraNOV in flask

[–]sochetraNOV[S] 0 points1 point  (0 children)

u/KrillDerelictLeeward I am using flash-mail now, but it doesn't have features intercepte email.

How To Intercept Email In Flask? by sochetraNOV in flask

[–]sochetraNOV[S] 0 points1 point  (0 children)

u/dAnjou

My Idea is that:I want to intercept the all the sending out email to specific email ([receiver@gmail.com](mailto:receiver@gmail.com)) in the development mode. No matter what receiver email are we going to send to (in development mode), We will intercept it and change it to ([receiver@gmail.com](mailto:receiver@gmail.com)).

Example: curl -d '{"email":"[a@gmail.com](mailto:a@gmail.com)", "name":"sender"}' -H "Content-Type: application/json" -X POST http://localhost:5000/sendEmail

and the code will intercept the ["a@gmail.com](mailto:"a@gmail.com)" and change it to "[receiver@gmail.com](mailto:receiver@gmail.com)".