React-native-router-flux: Error with menu_burger.png

Created on 20 May 2016  路  10Comments  路  Source: aksonov/react-native-router-flux

Version

  • react-native-router-flux v3.22.23
  • react-native v0.26.0

    Expected behaviour

This is with a new React Native project. The first time I run the app, without editing anything except adding react-native-router-flux

Actual behaviour

"/Users/jneumann/Projects/portfolio/node_modules/react-native-router-flux/src/menu_burger.png: Unexpected Character '?' (1:0) at menu_burger.png:1:0
screen shot 2016-05-19 at 8 50 03 pm

Most helpful comment

The solution was to quit the emulator _and_ the packager terminal and restart

All 10 comments

We haven't pushed a version compatible 0.26 to NPM yet. Go ahead and change your package.json to "react-native-router-flux": "aksonov/react-native-router-flux#0.26-wip",

Jawesome! That works now.

I have the same error with the latest version and latest react/react-native on an empty project

The solution was to quit the emulator _and_ the packager terminal and restart

my package.json is pointing to "react-native-router-flux": "^3.33.2" and @DominicTobias 's suggestion worked for me.

I am getting same error, while running the test with mocha. I also tried to use "react-native-router-flux": "aksonov/react-native-router-flux#0.26-wip" but no luck.

@nalwayaabhishek have you found a solution to your mocha tests? The suggestion by @hellogerard in #628 fixes my tests, but I don't know what (if any) negative effects it could have to silence the mockery warnings

For posterity, since I almost missed it scrolling through after being brought here on Google by this error message:

@DominicTobias's solution worked for me.
RN v0.33.0 and react-native-router-flux v3.35.0.

@DominicTobias 's solution worked for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GCour picture GCour  路  3Comments

willmcclellan picture willmcclellan  路  3Comments

rafaelcorreiapoli picture rafaelcorreiapoli  路  3Comments

maphongba008 picture maphongba008  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments