Skip to content

Commit 4e61235

Browse files
committed
TODO + clean up
1 parent 4f624b4 commit 4e61235

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.android.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const convertPoint = (name, point) => {
1414
'Array type is deprecated.'
1515
);
1616
}
17+
// TODO: Update Android native code to receive a {x, y} object, not an array
1718
if (point !== null && typeof point === 'object') {
1819
return [point.x, point.y];
1920
}

index.windows.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
* @flow
44
*/
55
import React, { Component } from 'react';
6-
import { processColor, requireNativeComponent, View } from 'react-native';
6+
import { processColor, View } from 'react-native';
77

8+
import NativeLinearGradient from './common';
9+
10+
// TODO: Update Windows native code + update Props to share the same API with iOS/android
811
type Props = {
912
start?: number[];
1013
end?: number[];
@@ -40,5 +43,3 @@ export default class LinearGradient extends Component<Props> {
4043
);
4144
}
4245
}
43-
44-
const NativeLinearGradient = requireNativeComponent('BVLinearGradient', null);

0 commit comments

Comments
 (0)