Skip to content

Instantly share code, notes, and snippets.

@AndrewSouthpaw
Created May 10, 2018 08:38
Show Gist options
  • Save AndrewSouthpaw/2321242a7c5bca58ab3f35c4ec7fb9bd to your computer and use it in GitHub Desktop.
Save AndrewSouthpaw/2321242a7c5bca58ab3f35c4ec7fb9bd to your computer and use it in GitHub Desktop.
Flow libdef stuf for react-native package.
declare var __DEV__: boolean;
declare module 'react-native' {
declare export var View: any;
declare export var Button: any;
declare export var StyleSheet: any;
declare export var Text: any;
declare export var Platform: any;
declare export var TouchableOpacity: any;
declare export var Image: any;
declare export var Dimensions: any;
declare export var ScrollView: any;
declare export var Animated: any; // yes // TODO(lmr): View/Text/Image/ScrollView
declare export var Alert: any; // yes
declare export var TouchableHighlight: any;
declare export var ActivityIndicator: any;
declare export var TouchableWithoutFeedback: any;
declare export var TextInput: any; // yes
declare export var PixelRatio: any; // yes
declare export var ListView: any; // yes
declare export var StatusBar: any;
declare export var Linking: any; // yes
declare export var Keyboard: any; // yes
declare export var LayoutAnimation: any; // yes
declare export var AsyncStorage: any; // yes
declare export var InteractionManager: any; // yes
declare export var Easing: any; // yes
declare export var TouchableNativeFeedback: any;
declare export var NativeModules: any;
declare export var Modal: any;
declare export var ColorPropType: any;
declare export var AppState: any; // yes
declare export var RefreshControl: any;
declare export var KeyboardAvoidingView: any;
declare export var Picker: any;
declare export var ActionSheetIOS: any;
declare export var Navigator: any;
declare export var WebView: any;
declare export var FlatList: any; // yes
declare export var findNodeHandle: any; // yes
declare export var Switch: any;
declare export var UIManager: any; // yes
declare export var Clipboard: any; // yes
declare export var PanResponder: any; // yes
declare export var NetInfo: any; // yes
declare export var BackAndroid: any;
declare export var Share: any; // yes
declare export var NavigationExperimental: any;
declare export var CameraRoll: any;
declare export var Vibration: any;
declare export var PermissionsAndroid: any;
declare export var Slider: any;
declare export var AlertIOS: any;
declare export var AppRegistry: any; // yes
declare export var PushNotificationIOS: any;
declare export var RenderingPerf: any;
declare export var Perf: any;
declare export var ToastAndroid: any;
declare export var RecyclerViewBackedScrollView: any;
declare export var SectionList: any;
declare export var DatePickerIOS: any;
declare export var ART: any;
declare export var requireNativeComponent: any; // yes
declare export var DeviceEventEmitter: any; // yes
declare export var BackHandler: any;
declare export var NativeEventEmitter: any; // yes
declare export var Touchable: any;
declare export var ProgressViewIOS: any;
declare export var I18nManager: any;
declare export var SwipeableListView: any;
declare export var processColor: any;
declare export var VibrationIOS: any;
declare export var DatePickerAndroid: any;
declare export var TimePickerAndroid: any;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment