MCPcopy Index your code
hub / github.com/react-native-linear-gradient/react-native-linear-gradient / validNumber

Function validNumber

index.android.js:29–31  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

27 * @param {number} defaultValue
28 */
29const validNumber = (defaultValue) => (value) => {
30 return typeof value === 'number' ? value : defaultValue;
31};
32
33export default class LinearGradient extends Component<Props> {
34 props: Props;

Callers 1

index.android.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…