React-native-linear-gradient: Error while updating prop end

Created on 6 Jan 2017  路  2Comments  路  Source: react-native-linear-gradient/react-native-linear-gradient

react-native: 0.37.0
react-native-linear-gradient: 1.6.0

screenshot_1483673415

I don't know where or why its happen, thanks for your support!

Most helpful comment

Syntax changed for start & end props.
Instead of
start={[0, 0]} end={[1, 0]}
Try
start={{x: 0, y: 0}} end={{x: 1, y: 0}}

All 2 comments

Syntax changed for start & end props.
Instead of
start={[0, 0]} end={[1, 0]}
Try
start={{x: 0, y: 0}} end={{x: 1, y: 0}}

@HeinZawHtet Thanks!

Was this page helpful?
0 / 5 - 0 ratings