rilyu / teaset

A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_opacityActive 有关问题

a603938361 opened this issue · comments

Environment:
OS: macOS 10.15.4
Node: 11.10.1
Yarn: 1.22.10
npm: 6.7.0
Watchman: 4.9.0
Xcode: Xcode 12.4 Build version 12D4e
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ^0.51.1 => 0.51.1


error: bundling failed: SyntaxError in /Users/c.z/Desktop/pro/SandbaoAPP3/sandbao/node_modules/teaset/components/ListRow/TouchableOpacity.js: /Users/c.z/Desktop/pro/SandbaoAPP3/sandbao/node_modules/teaset/components/ListRow/TouchableOpacity.js: Unexpected token (139:49)
137 |
138 | _opacityActive(duration) {

139 | this._setOpacityTo(this.props.activeOpacity ?? 0.2, duration);
| ^
140 | }
141 |
142 | _opacityInactive(duration) {

亲 这个写法应该没啥问题吧。。 为什么报错呢?

我也不知道为什么会这样了。

自己版本问题。。。