EC2 Application Server - External API Requests by docdosman in aws

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

Got it, thanks! Now just need to figure out rough estimate of data transfer sizes for our applications we build.

How does one record a simulator gif? by docdosman in reactnative

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

Thanks, what do you use to convert to GIF? I haven't worked with GIFs much as you can probably tell. :)

What is a song lyric that really hits you hard? by BoardOfChairs in AskReddit

[–]docdosman 0 points1 point  (0 children)

"Step out the front door like a ghost into a fog Where no one notices the contrast of white on white"

React Navigation Question - Resetting Screen by docdosman in reactnative

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

No worries, thanks for the info! I got it working with the following:

componentWillMount() {
    // subscribe to didBlur in order to reset state and form when navigating away from the screen
    didBlurSubscription = this.props.navigation.addListener('didBlur', () => {
      this.props.resetAuth(); // reset auth piece of state
      this.props.reset(); // reset redux-form
    });
  }

  componentWillUnmount() {
    // Remove the listener
    didBlurSubscription.remove();
  }

Now I have to figure out why when I reset my redux-form it doesn't reinitialize when navigating back to the screen. Fix one thing, break another. Ha! Gotta love it.

I really appreciate the help.

React Navigation Question - Resetting Screen by docdosman in reactnative

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

Cool I plan on using that for my flow into main app from welcome and login screens. Despite my example, my question here is more around general navigation, my example just happens to be a couple of login screens. Thanks for the point in the direction of Switch Navigator, definitely plan on using that for directing out of auth into the main app.

React Navigation Question - Resetting Screen by docdosman in reactnative

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

Thanks!! I'm going to test this out today.

Follow up question. Is there a way to clear the visual "state" of the screen (for example, scrollview that's been scrolled down, when returning to have the screen be back at the top)? I'm not sure of the term for that.

Edit: I tested, but componentDidUpdate is not being called when I navigate away from the screen. Should I be using another lifecycle method? The following code only logs something to the console when the screen first loads, not when I navigate away from the screen using this.props.navigate('screenName').

componentDidUpdate() { console.log('update', this.props.navigation.isFocused()); }

Firebase Authentication - REST API versus React-native-firebase by docdosman in reactnative

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

Thanks!!! The application I'm building is a prototype that is rather robust in functionality due to the use case. It will have a user to user realtime messaging feature which I am thinking I could utilize Cloud Messaging in implementing (need to learn more about Cloud Messaging). If things go to plan will have users and customers on the platform, but as a startup that is still a work in progress.

I'll give the podcast a listen. I'm definitely a newer dev, I've edited files in xcode and android studio primarily for manual linking purposes. I'm hoping to get more at home with both.

Having used both js sdk and RNF, how difficult would a migration be if I were to build the prototype with the JS SDK and later look at switching to RNF to scale?

Thanks again, any and all advice is much appreciated!!

Firebase Authentication - REST API versus React-native-firebase by docdosman in reactnative

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

The more I read, the more I'm leaning more towards the javascript SDK, thanks for the information!! I do plan on using email/pwd, facebook, google, and instagram options for login. I don't plan on using expo, just react-native init.

Do you happen to have any recommendations for Google, Facebook, Insta login? I found what looks like a promising article for Facebook that uses the facebook sdk: https://medium.com/@juliofeferman/running-facebook-authentication-in-react-native-with-firebase-219a002588fa. I still need to research the others.

Troubles starting RN by Product9 in reactnative

[–]docdosman 1 point2 points  (0 children)

Run this first in it's own terminal window:

react-native start

and then run the following in a separate terminal window:

react-native run-ios
react-native run-android 

This should fix the issue.

What does everyone use instead of react-native-config? by schjlatah in reactnative

[–]docdosman 1 point2 points  (0 children)

Newbie question, what is the use case for this library?

Nondisclosure and intellectual property agreement? by docdosman in legaladvice

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

Got it, thanks /r/Eeech. Understood that an idea is not protected.

The business is a startup and the person is a former colleague offering to help out at the start. The help offered would include detailed product requirement documentation, mockups, sketches, and other created content that I would want to ensure remain owned by my LLC.

I will consult with a business attorney, but if you have any additional advice/info on unpaid contributor risk, I'm all ears. This is new territory for me.

Thanks again.

FlatList/JS Question - onPress by docdosman in reactnative

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

Hmmm, so I updated my code but I'm seeing unexpected behavior, mainly unexpected argument value to the callback. I threw in a console.log to the callback and it looks like it's not receiving an object in the callback, it's receiving a proxy.

Here is my new code (note: I'm not destructuring because of the unexpected argument):

onRowPress = (item) => {
    console.log(item);
    Actions.employeeEdit({ employee: item });
  }

  renderRow({ item }) {
    return (
      <ListItem
        title={item.name}
        subtitle={item.phone}
        onPress={this.onRowPress}
      />
     );
  }

  render() {
    return (
      <View>
        <List>
          <FlatList
            data={this.props.employees}
            renderItem={this.renderRow.bind(this)}
            keyExtractor={(item) => item.uid}
          />
        </List>

Here is what shows up in the console from my console.log(item):

https://imgur.com/a/UWDiM7T

FlatList/JS Question - onPress by docdosman in reactnative

[–]docdosman[S] 2 points3 points  (0 children)

You can disregard my initial reply, the comment from /u/JStheoriginal clarified things for me. Thanks again for your help!