Skip to content

Conversation

@frankcalise
Copy link
Contributor

Please verify the following:

  • yarn build-and-test:local passes
  • I have added tests for any new features, if relevant
  • README.md (or relevant documentation) has been updated with your changes

Describe your PR

@CalvinNFT
Copy link

This PR is good. Saved me. The docs currently don't support .js.

I modified it like this to work on .js react native 0.73.6.

const createEnhancers = (getDefaultEnhancers) => {
  if (__DEV__) {
    const reactotron = require("../../ReactotronConfig").default
    return getDefaultEnhancers().concat(reactotron.createEnhancer())
  } else {
    return getDefaultEnhancers()
  }

}

@frankcalise frankcalise merged commit 8ec0e10 into master Feb 7, 2025
@frankcalise frankcalise deleted the docs/1450-redux-enhancer branch February 7, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reactrotron not showing redux store

4 participants