Skip to main contentdfsdf

Jeremy Gollehon
  • !!!SOLUTION HERE!!!!
    • I feel in general there could be two styles of navigation, and I've used both styles now in my application.

       
         
      1.  

        Using it for plain navigation. This means wanting to pass entire objects when navigating to other screens. For example: you have a list of restaurants, and then navigate to a restaurant detail page and pass the entire restaurant object.

         
      2.  
      3.  

        Using it more as 'URL-driven' navigation. This means wanting to pass simple identifiers when navigating to other screens. To use the same example: This means that you'd just pass the restaurant ID to the detail page, and let the detail page fetch the rest of the information.

         
      4.  
       

      It seems that React Navigation is geared towards the second style. This could be fine in itself. However, since it is presented as the 'official recommended' navigation library for React, I believe it should also have built in support for the first style. Navigation is something that pretty much every app needs, and I believe that the 'official' library can not just cater to the more complex navigation requirements.

Jeremy Gollehon
    • Types of tokens

       

      So what kinds of token are there? And how do they differ?

       

      A token can fulfil either one, or several of the following functions:

       
         
      • A currency, used as a payment system between participants.
      •  
      • A digital asset (a digital right – to land ownership, or tomatoes in a warehouse, and similar assets).
      •  
      • A means for accounting (number of API-calls, volume of torrent uploads).
      •  
      • A share (stake) in a specific start-up.
      •  
      • A way of rewarding main players (the best example is bitcoin).
      •  
      • A way of preventing attacks (such as commission within the bitcoin network).
      •  
      • Payment for using a system.
Jeremy Gollehon
    • jsx props setter

       

      input:

       
      const color = 'red'; <MyComponent {...{color}}/>;
       

      equal to:

       
      const color = 'red'; <MyComponent color={color}/>;
       

      output:

       
      const color = 'red'React.createElement(MyComponent, { color: color });
       

      pros

       
         
      • Avoid duplicate name
      •  
      • less code
Show more items

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo