-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mapPropsToStyleNames is not defined #559
Comments
Closing this issue, as this doesn't seems to happen with the newer versions. |
@shivrajkumar Please reopen, just happened to me with latest |
@luchillo17 Could you post your |
I'll do it tonight, also in the linked issue they say maybe i'm mixing incompatible |
@SupriyaKalghatgi I'm not at home, grab the {
"name": "InsuranceCalculator",
"version": "0.1.0",
"private": true,
"scripts": {
"tsc": "tsc",
"lint": "tslint src/**/*.ts",
"clean": "rimraf artifacts",
"watch": "yarn build -- -w",
"build": "yarn run clean && yarn tsc --",
"start": "react-native start",
"start:watch": "npm run build && concurrently -r 'npm run watch' 'sleep 1.3 && npm run start'",
"android": "react-native run-android",
"ios": "react-native run-ios",
"test": "node node_modules/jest/bin/jest.js --watch"
},
"jest": {
"preset": "jest-expo"
},
"devDependencies": {
"@types/jest": "^19.2.4",
"@types/react": "^15.0.27",
"@types/react-native": "^0.44.10",
"@types/react-redux": "^4.4.42",
"@types/redux-form": "^6.6.2",
"@types/remote-redux-devtools": "^0.5.0",
"babel-plugin-transform-decorators": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-env": "^1.5.2",
"babel-preset-es2015-and-decorators": "^1.2.1",
"babel-preset-react": "^6.24.1",
"babel-preset-react-native": "^1.9.2",
"concurrently": "^3.4.0",
"jest-expo": "~1.0.1",
"react-test-renderer": "16.0.0-alpha.6",
"redux-devtools-extension": "^2.13.2",
"remote-redux-devtools": "^0.5.11",
"remote-redux-devtools-on-debugger": "^0.7.1",
"rimraf": "^2.6.1",
"tslint": "^5.4.3",
"typescript": "^2.3.4"
},
"dependencies": {
"@expo/vector-icons": "^5.0.0",
"lodash": "^4.17.4",
"moment": "^2.18.1",
"native-base": "^2.1.5",
"react": "16.0.0-alpha.6",
"react-native": "^0.44.0",
"react-native-router-flux": "^3.39.2",
"react-native-vector-icons": "^4.2.0",
"react-redux": "^5.0.5",
"redux": "^3.6.0",
"redux-connect-decorator": "^0.1.0",
"redux-form": "^6.8.0"
}
} I think it might be the |
@luchillo17 yes may be
|
I've just created a new project and tested, indeed it works, however my project is based on Typescript, might it be that? |
@SupriyaKalghatgi Did you installed with |
@luchillo17 I did |
I've started all over again, i'm using CRNA ejected to regular react native app. Btw, have you noticed that |
+1 |
Same kind of error with React-native 49.2 and native-base 2.3.2 in a jest test giving:
the error is removed when i patch node_modules/native-base/src/Utils/mapPropsToStyleNames.js to: i had to add to several dist files (DefaultTabBar.js, ScrollableTabBar.js):
Currently not available to create a PR for this, but this should give a hint to solve this. |
I just got this error and it seems to be a case issue; my |
react-native, react and native-base version
react@15.4.0
react-native@0.41.2
native-base@2.0.9
Steps to reproduce (code snippet or screenshot)
just import any component will raise this error.
Screenshot of emulator/device
Is the bug present in both ios and android or in any one of them?
tested on iOS simulator
The text was updated successfully, but these errors were encountered: