title: React Native Review Prompt with Redux
body: <p>I'm trying to trigger a review prompt at various places throughout our react native app. To trigger the prompt I use this bit of code.</p>
  <pre><code>StoreReview.requestReview()
  </code></pre>
  <p>Before I trigger the prompt I need to perform some logic. Pulling various information from a database and performing checks.</p>
  <p>My question is, where is the best place to put this logic in a compartmentalized and reusable way so that I can use it throughout the app.</p>
  <p>Could I use redux actions and middleware to trigger it on a state change?</p>
  <p>Just put it in a utility file and import it, calling it like a normal function? The issue with this approach is I would want to trigger it when the user is done using a component. When to show the prompt relies more on state rather than any component.</p>
  <p>Create some sort of react component, using react-navigation to show?</p>