vivaxy/react-native-auto-height-image

React-Native 0.56.0: Trailing comma in element is causing bundle error

Closed this issue · 1 comments

Issue is quite similar to mjsolidarios/react-native-search-filter#16.

Bundling with React-Native 0.56.0 leads to this error:

error: bundling failed: SyntaxError: ... node_modules/react-native-auto-height-image/autoHeightImageWithErrorFallback.js: A trailing comma is not permitted after the rest element (19:24)

    const {
        source,
        fallbackSource,
        onError,
        ...restProps,
    } = this.props;

Oh, I just saw its fixed on master. Would be cool if you could push an 1.0.1 with this fix.

Thanks for reporting.

Fixed by commit: e3c011c

Released v1.0.1