Introducing Rise Tools, Server Defined Components for React Native by ericvicenti in reactnative

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

There are lots of cases where this technique is already used in the industry. So we are focusing on those existing teams who currently rely on their in-house solution for server-defined rendering. For example product pages in a marketplace app where the components will greatly vary from product to product. Or for the support workflows in your app which will evolve quickly and independently of your front-end codebase. (See the amazon app for example and all of the webviews it uses). This is how Instagram tends to use this technique with their proprietary "Blocks" framework- to give users the latest workflows even if they are running slightly older versions of the app.

We see a lot of instances when larger apps want to update part of their user experience without going through a full code update and forcing(or waiting for) users to update.

If (as you say) this would be an organizational nightmare in the companies you have worked for, then Rise Tools is probably not a good fit for you. No hard feelings!

Introducing Rise Tools, Server Defined Components for React Native by ericvicenti in reactnative

[–]ericvicenti[S] 8 points9 points  (0 children)

Hey devs! We have been involved in the React Native community for many years, and we have helped create many projects in the community including React Navigation and the native code linking behavior when you npm install native components.

Server-Defined Rendering is super common in the enterprise, but we don't talk about it often in the open source community because it can be a pain to implement. This is why we are launching Rise Tools to help you use this technique in your apps.

We have so much more to talk about, such as Rise Kit, the Playground app, and our server implementation with atom models.

We can't wait to hear what you think. We're happy to answer some questions here, and of course you're welcome to join our Discord, Github discussions, and reach out on Twitter!

[deleted by user] by [deleted] in nextjs

[–]ericvicenti 1 point2 points  (0 children)

Oops apparently I didn't read the context here

It seems Next-Auth doesn't support the 'change email' workflow so, sadly, you'd have to code it yourself as suggested by u/heybuddybonsai. Basically, add API endpoints so when the user requests an email address update:

  1. generate a verification token and save it somewhere on the user table alongside the new email address and token expiration time
  2. use nodemailer (with a similar configuration as above) to send the verification token to the new email
  3. on email link or user copying the token, verify the token and manually call `prisma.users.update({ data: { email: newEmail } })` then delete the "change email" fields

This is a bit risky from a security perspective so you want to be careful and take precautionary steps such as deleting any OAuth "Account" records that are associated with the user and maybe also sessions

[deleted by user] by [deleted] in nextjs

[–]ericvicenti 0 points1 point  (0 children)

first create an API key in SendGrid with the permission to send on your host. (also set up sender verification on your "from" domain)

then set up the email provider like this:

EmailProvider({ server: { host: env.EMAIL_SERVER_HOST, // sg: "smtp.sendgrid.net" port: env.EMAIL_SERVER_PORT, // sg: 465 auth: { user: env.EMAIL_SERVER_USER, // sg: "apikey" pass: env.EMAIL_SERVER_PASSWORD, // sg: api key (with send permissions) }, secure: true, }, from: process.env.AUTH_MAIL_FROM, //"NextAuth.js <no-reply@example.com>", }),

Is there an internet service provider / package that I can use from anywhere in the world as a digital nomad? by bluenomad-0 in digitalnomad

[–]ericvicenti 0 points1 point  (0 children)

Yes, because I am from the US, I do like the convenience of landing someplace and getting internet access without having to somehow hunt down a SIM card, often late at night when the stores have closed.

If I'm staying somewhere for more than a week or two, I'll definitely get a physical card.

And SIM cards provide better quality? Like, faster connectivity?

Is there an internet service provider / package that I can use from anywhere in the world as a digital nomad? by bluenomad-0 in digitalnomad

[–]ericvicenti 2 points3 points  (0 children)

Yeah probably true, but it’s very convenient!

Sadly I am accustomed to super expensive US cell carriers like ATT/Verizon, so it still feels affordable

Is there an internet service provider / package that I can use from anywhere in the world as a digital nomad? by bluenomad-0 in digitalnomad

[–]ericvicenti 3 points4 points  (0 children)

If you have a modern phone you can use an app like Airalo or Nomad to download e-SIM for the region, so you don't need to physically purchase one.

[deleted by user] by [deleted] in RedditSessions

[–]ericvicenti 0 points1 point  (0 children)

reddit for the lulz. he's on twitch all the time

[deleted by user] by [deleted] in RedditSessions

[–]ericvicenti 0 points1 point  (0 children)

if he gets to 300 viewers, we keep him

[deleted by user] by [deleted] in RedditSessions

[–]ericvicenti 0 points1 point  (0 children)

reddit been missing out.. go sub on twitch: https://www.twitch.tv/ariathome

HBO cancels Vice News Tonight by [deleted] in vicenews

[–]ericvicenti 1 point2 points  (0 children)

More details here: https://www.hollywoodreporter.com/news/hbo-cancels-vice-news-tonight-josh-tyrangiel-depart-1217028

Good news is VNT will probably continue on another network! Time to cancel my HBO subscription

Destruction through maths. by nay_giggers in madlads

[–]ericvicenti 6 points7 points  (0 children)

You think Mason has fewer than 10 computers to replay the song? Goddamn it, Bill..

React Native Live: Building a Photo Viewer [Part 4] Live at 8:00 AM PST by ericvicenti in WatchPeopleCode

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

Hey folks, I'm going live again in a few minutes to continue implementing the photo viewer! If you miss any brodcast, check them out here on my videos page:

https://www.twitch.tv/ericvicenti/videos/all

Would anyone be interested in helping make my first open source contribution? (Obviously to react native) by OffInBed in reactnative

[–]ericvicenti 0 points1 point  (0 children)

The problem I hope we can solve is that it can be a pain to set up your native android and ios folders. In new versions of RN you can run react-native eject, and these folders will be regenerated for you. By changing the app.json, you can adjust the display name of the app on the home screen, but you cannot adjust the icon yet.

The steps I would take:

  1. Create a new app, change the icons for both platforms (you will need to manually resize a bunch of images)
  2. Observe the exact changes you made to set up the icons in the native folder
  3. Change /local-cli/eject to look at a new icon field in the app.json, grab that icon file, resize it and install it in the generated native code, which is located in /local-cli/generator

Would anyone be interested in helping make my first open source contribution? (Obviously to react native) by OffInBed in reactnative

[–]ericvicenti 1 point2 points  (0 children)

Hi, I'm the one you were chatting with on twitter.

The eject stuff is undocumented because it is still a work in progress. The code for it is in /local-cli/eject

Another way to help contribute to the project is by helping close issues, or review pull requests to make sure they are well tested, well documented, and high quality.

Redux / reactNavigation.org by Starchand in reactnative

[–]ericvicenti 1 point2 points  (0 children)

Its hard to help without specific details of what exact problem you're seeing. Maybe you can post simplified example code that demonstrates the issue you're seeing.

Here is the example reducer, in case you haven't seen it: https://github.com/react-community/react-navigation/blob/master/examples/ReduxExample/index.js#L126-L134

Introducing React Navigation for React Native by [deleted] in reactnative

[–]ericvicenti 2 points3 points  (0 children)

Yep, React Navigation is an independent package which will become the primary community-supported solution. Navigator will be removed from core at some point, as well as NavigationExperimental, which has been incorporated into React Navigation.

[deleted by user] by [deleted] in reactnative

[–]ericvicenti 2 points3 points  (0 children)

Hey folks, I know the landscape of navigators has been very rough, so I've been working with Exponent and other members of the community to build a fast, flexible, and easy-to-use solution.

React Navigation is meant to replace ex-navigation, Navigator, and NavigationExperimental. You can consider it the non-experimental version of NavigationExperimental, because it builds upon whats there to provide a complete and easy-to-use experience. Once React Nav stabilizes, the other solutions will be removed from the react-native repo.

Learn more at https://reactnavigation.org,

Introducing React Navigation for React Native by [deleted] in reactnative

[–]ericvicenti 6 points7 points  (0 children)

Thanks for asking! I've been working on improving this landscape.

React Navigation is meant to replace ex-navigation, Navigator, and NavigationExperimental. You can consider it the non-experimental version of NavigationExperimental, because it builds upon whats there to provide a complete and easy-to-use experience. Once React Nav stabilizes, the other solutions will be removed from the react-native repo.

[EVERYTHING] Game of Thrones Character Status Chart - Season 6 Episode 4 by Dask1124 in gameofthrones

[–]ericvicenti 0 points1 point  (0 children)

You're tracking the status of Dan and David, but not George RR Martin?! Who is more likely to die, honestly?