docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
"react-native-easy-grid": "https://github.com/GeekyAnts/react-native-easy-grid#development", | <mask> "native-base-shoutem-theme": "0.2.2",
<mask> "print-message": "^2.1.0",
<mask> "prop-types": "^15.5.10",
<mask> "react-native-drawer": "2.5.0",
<mask> "react-native-easy-grid": "0.1.17",
<mask> "react-native-keyboard-aware-scroll-view": "0.5.0",
<mask> "react-native-vector-icon... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | package.json |
"babel-jest": "23.2.0",
"babel-preset-react-native": "4.0.0", | <mask> },
<mask> "devDependencies": {
<mask> "babel-cli": "^6.18.0",
<mask> "babel-eslint": "^7.2.3",
<mask> "babel-jest": "^16.0.0",
<mask> "babel-preset-react-native": "^1.9.2",
<mask> "eslint": "^3.5.0",
<mask> "eslint-config-airbnb": "^11.1.0",
<mask> "eslint-plugin-import":... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | package.json |
"jest": "23.3.0",
"react": "16.4.1",
"react-native": "0.56.0",
"react-native-vector-icons": "4.6.0",
"react-test-renderer": "16.4.1" | <mask> "eslint-plugin-jsx-a11y": "^2.2.1",
<mask> "eslint-plugin-react": "^6.2.0",
<mask> "eslint-plugin-react-native": "^2.0.0",
<mask> "flow-bin": "0.47.0",
<mask> "jest": "19.0.2",
<mask> "react": "^16.0.0-alpha.12",
<mask> "react-native": "^0.46.0",
<mask> "react-native-vecto... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | package.json |
"react": ">=16.4.1",
"react-native": ">=0.56.0" | <mask> "main": "dist/src/index.js",
<mask> "typings": "./index.d.ts",
<mask> "optionalDependencies": {},
<mask> "peerDependencies": {
<mask> "react": ">=16.0.0-alpha.12",
<mask> "react-native": ">=0.46.0"
<mask> },
<mask> "readmeFilename": "README.md",
<mask> "repository": {
<mask> "... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | package.json |
import { StyleSheet } from "react-native";
| <mask> "use_strict";
<mask> import _ from "lodash";
<mask> import ReactNativePropRegistry from "react-native/Libraries/Renderer/shims/ReactNativePropRegistry";
<mask> // For compatibility with RN 0.25
<mask> // import ReactNativePropRegistry from "react-native/Libraries/ReactNative/ReactNativePropRegistry";
<mask... | [
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | src/utils/computeProps.js |
_.merge(computedPropsStyle, StyleSheet.flatten(style)); | <mask> computedProps.style = {};
<mask> if (Array.isArray(incomingPropsStyle)) {
<mask> _.forEach(incomingPropsStyle, style => {
<mask> if (typeof style === "number") {
<mask> _.merge(computedPropsStyle, ReactNativePropRegistry.getByID(style));
<mask> } else {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | src/utils/computeProps.js |
computedPropsStyle = StyleSheet.flatten(incomingPropsStyle); | <mask> _.merge(computedPropsStyle, style);
<mask> }
<mask> });
<mask> } else if (typeof incomingPropsStyle === "number") {
<mask> computedPropsStyle = ReactNativePropRegistry.getByID(incomingPropsStyle);
<mask> } else {
<mask> computedPropsStyle = incomingPropsStyle;
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f6b810f5f0d9b1a4cfabaccbcf733cafc7edff42 | src/utils/computeProps.js |
/* @flow */
'use strict';
import React from 'react';
import {View} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import Text from './Text';
export default class BadgeNB extends NativeBaseComponent {
propTypes: {
s... | <mask> /* @flow */
<mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import {View} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Text from './Text';
<mask>
<mask>
<mask... | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"rep... | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/Badge.js |
/* @flow */
'use strict';
import React from 'react';
import { TouchableOpacity, Platform } from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import IconNB from './Icon';
import Icon from './Icon';
import Text from './Text';
import _... | <mask> /* @flow */
<mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import { TouchableOpacity, Platform } from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import IconNB from './Icon'... | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"rep... | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/Button.js |
/* @flow */
'use strict';
import React from 'react';
import clamp from 'clamp';
import {Animated, PanResponder} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import View from './View';
var SWIPE_THRESHOLD = 120;
export default class CardSwiper extends NativeBaseComponent {
... | <mask> /* @flow */
<mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import clamp from 'clamp';
<mask> import {Animated, PanResponder} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import View from './View';
<mask>
<mask>
<mask> var SW... | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"rep... | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/CardSwiper.js |
/* @flow */
'use strict';
import React from 'react';
import clamp from 'clamp';
import {Animated, PanResponder, Platform} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import View from './View';
var SWIPE_THRESHOLD = 120;
export default class CardSwiper extends NativeBaseCompone... | <mask> /* @flow */
<mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import clamp from 'clamp';
<mask> import {Animated, PanResponder, Platform} from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import View from './View';
<mask>
<mask> var S... | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"rep... | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/DeckSwiper.js |
Animated.spring(
this.state.enter,
{ toValue: 0.8+val, friction: 7 }
).start();
Animated.event([
null, {dx: this.state.pan.x}, | <mask> Animated.timing(
<mask> this.state.fadeAnim,
<mask> {toValue: 0.8+val}
<mask> ).start();
<mask> Animated.spring(
<mask> this.state.enter,
<mask> { toValue: 0.8+val, friction: 7 }... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/DeckSwiper.js |
},
onPanResponderRelease: (e, {vx, vy}) => {
var velocity;
if (vx >= 0) {
velocity = clamp(vx, 4.5, 10);
console.log('velocity', velocity);
} else if (vx < 0) { | <mask> ).start();
<mask> Animated.event([
<mask> null, {dx: this.state.pan.x},
<mask> ])(e, gestureState)
<mask> },
<mask>
<mask> onPanResponderRelease: (e, {vx, vy}) => {
<mask> var velocity;
<mask>
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/DeckSwiper.js |
console.log('velocity', velocity);
}
if (Math.abs(this.state.pan.x._value) > SWIPE_THRESHOLD) {
if (velocity>0) {
this.selectNext();
} else {
this.selectNext();
... | <mask> velocity = clamp(vx, 4.5, 10);
<mask> console.log('velocity', velocity);
<mask> } else if (vx < 0) {
<mask> velocity = clamp(vx * -1, 4.5, 10) * -1;
<mask> console.log('velocity', velocity);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/DeckSwiper.js |
/* @flow */
'use strict';
import React from 'react';
import {Image, TouchableOpacity, Platform } from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import Icon from './Icon';
import Text from './Text';
import View from './View';
impo... | <mask> /* @flow */
<mask> 'use strict';
<mask>
<mask> import React from 'react';
<mask> import {Image, TouchableOpacity, Platform } from 'react-native';
<mask> import NativeBaseComponent from '../Base/NativeBaseComponent';
<mask> import computeProps from '../../Utils/computeProps';
<mask> import Icon from './I... | [
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"rep... | https://github.com/GeekyAnts/NativeBase/commit/f76c9c4d30829ce12136d73e4bb63d556af8bea3 | Components/Widgets/ListItem.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.