diff --git a/example/App.tsx b/example/App.tsx index 7f45467..4dae08b 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { View, Text, @@ -7,7 +7,6 @@ import { SafeAreaView, TouchableOpacity } from "react-native"; - import MediaPicker from "@paraboly/react-native-media-picker"; console.disableYellowBox = true; diff --git a/example/package.json b/example/package.json index 47368d6..dea7285 100644 --- a/example/package.json +++ b/example/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@freakycoder/react-native-helpers": "^0.1.2", - "@paraboly/react-native-media-picker": "0.0.1", + "@paraboly/react-native-media-picker": "0.0.7", "react": "16.9.0", "react-native": "0.61.5", "react-native-dynamic-vector-icons": "^0.2.1", @@ -27,7 +27,7 @@ "@react-native-community/eslint-config": "^0.0.5", "@types/jest": "^24.0.24", "@types/react": "^16.9.17", - "@types/react-native": "^0.60.29", + "@types/react-native": "^0.60.30", "@types/react-test-renderer": "16.9.1", "@typescript-eslint/eslint-plugin": "^2.12.0", "@typescript-eslint/parser": "^2.12.0", diff --git a/example/tsconfig.json b/example/tsconfig.json index b32276d..e67c647 100644 --- a/example/tsconfig.json +++ b/example/tsconfig.json @@ -39,7 +39,7 @@ /* Module Resolution Options */ "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, - "baseUrl": "./" /* Base directory to resolve non-absolute module names. */, + "baseUrl": "." /* Base directory to resolve non-absolute module names. */, // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ diff --git a/lib/MediaPicker.tsx b/lib/MediaPicker.tsx index fec91cb..a5cc740 100644 --- a/lib/MediaPicker.tsx +++ b/lib/MediaPicker.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { Text, TouchableOpacity, View, Alert } from "react-native"; import { styles, diff --git a/package.json b/package.json index ceb91ed..b389d21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraboly/react-native-media-picker", - "version": "0.0.6", + "version": "0.0.7", "description": "Easy to use media picker modal for React Native by Paraboly", "main": "./build/dist/MediaPicker.js", "repository": "git@github.com:WrathChaos/@paraboly/react-native-media-picker.git",