In order to accomplish this we need to install the next package to our project:
> install module-alias --save
Then we need to modify three files, lets go in order:
import 'package:flutter/material.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'dart:io'; | |
import 'dart:async'; | |
//Example | |
class StartPage extends StatelessWidget { | |
// SHow Native Pop Up to User | |
static Future<Null> showAlertPopup( | |
BuildContext context, String title, String detail) async { |
{"lastUpload":"2020-07-15T23:38:36.791Z","extensionVersion":"v3.4.3"} |
import {Platform, PermissionsAndroid} from 'react-native'; | |
import RNImagePicker from 'react-native-image-picker'; | |
/** | |
* Overrides react-native-image-picker | |
* | |
* Attempts to fix: | |
* | |
* - https://github.com/react-community/react-native-image-picker/issues/385 | |
* - https://github.com/react-community/react-native-image-picker/issues/581 |
GRANT EXECUTE ON schema::<schema name> TO <user name> |
-- This file should execute in the database that you want to assign this user | |
CREATE USER webappuser | |
FOR LOGIN webappuser | |
GO | |
EXEC sp_addrolemember N'db_datareader', N'webappuser' | |
EXEC sp_addrolemember N'db_datawriter', N'webappuser' | |
EXEC sp_addrolemember N'db_ddladmin', N'webappuser' | |
GO |
{ | |
"compilerOptions": { | |
"target": "ES6", | |
"module": "commonjs", | |
"allowSyntheticDefaultImports": true, | |
"checkJs": true, | |
"jsx": "react-native" | |
}, | |
"exclude": ["node_modules"] | |
} |
function timeConvert(minutes) { | |
return `${Math.floor(minutes / 24 / 60)}:${Math.floor((minutes / 60) % 24)}:${Math.floor(minutes % 60)}`; | |
} |