-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
Description
## Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 752.25 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.6.0 - ~/.nvm/versions/node/v10.6.0/bin/node
Yarn: 1.10.0 - ~/.yarn/bin/yarn
npm: 6.1.0 - ~/.nvm/versions/node/v10.6.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
Android SDK:
Build Tools: 27.0.3, 28.0.1
API Levels: 23, 25, 26, 27, 28
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
@types/react: ^16.4.14 => 16.4.14
@types/react-native: ^0.57.0 => 0.57.0
react: 16.5.2 => 16.5.2
react-native: 0.57.1 => 0.57.1
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native: 0.57.1
Hi, I still getting an old issue about undefined is not an object evaluating _this._setComponentRef.bind
I tried adding "@babel/plugin-transform-flow-strip-types": "^7.0.0"
to package.json
and set my babel.config.js to
module.exports = {
'presets': [
'module:metro-react-native-babel-preset',
'module:react-native-dotenv',
],
'sourceMaps': true,
'plugins': [
'@babel/transform-flow-strip-types',
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/transform-runtime'
],
};
any other ideas? seems like this happing in TouchableOpacity onPress property...
kennethnym, jefflewis, sreevisakh, kpink224, meznaric and 5 more