MaterialBottomTab not appearing on ios simulator - reactjs

This is my file that I am trying to create a demo of a bottom-tab. The problem is, I only get a blank page, no sign of a bottom tab. There is no error that I can point to. I don't know what is causing it, I deleted and reinstalled the relevant packages a few times already, but had no results. Any help is much appreciated.
import React from 'react'
import {createMaterialBottomTabNavigator} from "#react-navigation/material-bottom-tabs"
const Tab = createMaterialBottomTabNavigator()
const EmptyScreen = () => {
return <View>
</View>
}
export default function HomeScreen() {
return (
<View>
<Tab.Navigator
barStyle={{backgroundColor: "black",
paddingBottom: 48 }}
initialRouteName= "feed">
<Tab.Screen
name = "feed"
component = {EmptyScreen}
/>
<Tab.Screen
name = "Profile"
component = {EmptyScreen}
/>
<Tab.Screen
name = "Add"
component = {EmptyScreen}
/>
<Tab.Screen
name = "Settings"
component = {EmptyScreen}
/>
</Tab.Navigator>
</View>
)
}```
And this is the package.json file in case anyone needs it to reproduce the situation.
```{
"name": "academical",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios"
},
"dependencies": {
"#react-native-community/masked-view": "^0.1.11",
"#react-navigation/material-bottom-tabs": "^6.2.3",
"#react-navigation/native": "^6.0.12",
"#react-navigation/stack": "^6.2.3",
"expo": "^46.0.9",
"expo-constants": "~13.2.3",
"expo-splash-screen": "~0.16.2",
"expo-status-bar": "~1.4.0",
"firebase": "^8.10.1",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.5",
"react-native-gesture-handler": "^2.6.0",
"react-native-paper": "^4.12.4",
"react-native-reanimated": "^2.10.0",
"react-native-safe-area-context": "^4.3.1",
"react-native-screens": "~3.15.0",
"react-native-vector-icons": "^9.2.0",
"react-native-web": "~0.18.7",
"react-navigation": "^4.4.4",
"react-redux": "^8.0.2",
"redux": "^4.2.0",
"redux-thunk": "^2.4.1"
},
"devDependencies": {
"#babel/core": "^7.12.9"
}
}```

Solved. Wrap the Tab.Navigator with a NavigationContainer and set independent = {}.

Related

react-bootstrap ToggleButton type Radio not showing selected on state update

Since I updated to the latest version of React and react-bootstrap this has not worked. Can someone help me understand why?
When view is changed by any means other than clicking on the toggle button the style does not show as checked.
It works as expected when clicked, but even when I explicitly set checked={true} within the ToggleButton component the button still does not show as checked unless it is clicked.
import React from "react";
import { ToggleButton, ToggleButtonGroup } from "react-bootstrap";
const SidebarMode = ({ view, setView }) => {
return (
<ToggleButtonGroup type="radio" name="modeSelect">
<ToggleButton
id="habitat"
variant="outline-secondary"
value="habitat"
checked={view === "habitat"}
onChange={(e) => setView(e.currentTarget.value)}
>
Visualize Habitat
</ToggleButton>
<ToggleButton
id="add"
variant="outline-secondary"
value="add"
checked={view === "add"}
onChange={(e) => setView(e.currentTarget.value)}
>
Import AOI
</ToggleButton>
<ToggleButton
id="view"
variant="outline-secondary"
value="view"
checked={view === "view"}
onChange={(e) => setView(e.currentTarget.value)}
>
Summarize AOI
</ToggleButton>
<ToggleButton
id="act"
variant="outline-secondary"
value="act"
checked={view === "act"}
onChange={(e) => setView(e.currentTarget.value)}
>
Take Actions
</ToggleButton>
</ToggleButtonGroup>
);
};
export default SidebarMode;
EDIT:
Here's the package.json incase it's a version issue and not user error.
{
"name": "cvt1",
"version": "0.1.0",
"private": true,
"dependencies": {
"#fortawesome/fontawesome-svg-core": "^6.1.1",
"#fortawesome/free-solid-svg-icons": "^6.1.1",
"#fortawesome/react-fontawesome": "^0.2.0",
"#mapbox/mapbox-gl-draw": "^1.3.0",
"#testing-library/jest-dom": "^5.16.4",
"#testing-library/react": "^13.3.0",
"#testing-library/user-event": "^14.2.1",
"#turf/area": "^6.5.0",
"#turf/bbox": "^6.5.0",
"assert": "^2.0.0",
"axios": "^0.27.2",
"bootstrap": "^5.1.3",
"buffer": "^6.0.3",
"chart.js": "^3.8.0",
"deck.gl": "^8.8.4",
"i": "^0.3.7",
"mapbox-gl": "^2.9.2",
"npm": "^8.15.0",
"react": "^18.2.0",
"react-bootstrap": "^2.4.0",
"react-bootstrap-range-slider": "^3.0.8",
"react-chartjs-2": "^4.2.0",
"react-dom": "^18.2.0",
"react-draggable": "^4.4.5",
"react-dropzone": "^14.2.1",
"react-hamburger-menu": "^1.2.1",
"react-icons": "^4.4.0",
"react-map-gl": "^7.0.16",
"react-multi-switch-toggle": "^1.0.12",
"react-redux": "^8.0.2",
"react-resizable-element": "^0.1.5",
"react-router-dom": "^6.3.0",
"react-scripts": "^2.1.3",
"react-select": "^5.3.2",
"react-switch": "^7.0.0",
"react-tooltip": "^4.2.21",
"redux": "^4.2.0",
"redux-thunk": "^2.4.1",
"shpjs": "^4.0.2",
"start": "^5.1.0",
"uuid": "^8.3.2",
"viewport-mercator-project": "^7.0.4",
"worker-loader": "^3.0.8"
},

FontAwesome css classes missing?

I'm using a very similar Next.js project setup where the FontAwesome CSS classes are working, the only real difference is that this project is using Tailwindcss, where my previous project was with styled-components
This is my package.json
{
"name": "trpc-test",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "rm -rf .next && prisma generate && next dev",
"build": "next build",
"start": "next start",
"postinstall": "yarn migrate:prod && prisma generate"
},
"dependencies": {
"#fortawesome/fontawesome-svg-core": "^6.1.1",
"#fortawesome/free-brands-svg-icons": "^6.1.1",
"#fortawesome/free-regular-svg-icons": "^6.1.1",
"#fortawesome/free-solid-svg-icons": "^6.1.1",
"#fortawesome/react-fontawesome": "^0.1.18",
"#next-auth/prisma-adapter": "^1.0.3",
"#prisma/client": "^4.1.0",
"#reduxjs/toolkit": "1.8.1",
"#svgr/webpack": "5.5.0",
"#trpc/client": "^9.26.2",
"#trpc/next": "^9.26.2",
"#trpc/react": "^9.26.2",
"#trpc/server": "^9.26.2",
"framer-motion": "^6.5.1",
"next": "12.2.1",
"next-auth": "^4.10.1",
"nodemailer": "^6.7.7",
"nprogress": "^0.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-query": "3.39.2",
"react-redux": "8.0.1",
"react-toastify": "8.0.3",
"redux": "4.2.0",
"redux-persist": "6.0.0",
"redux-thunk": "2.4.1",
"superjson": "^1.9.1",
"zod": "^3.17.3"
},
"devDependencies": {
"#types/node": "18.0.0",
"#types/nprogress": "^0.2.0",
"#types/prettier": "^2.4.1",
"#types/react": "18.0.14",
"#types/react-dom": "18.0.5",
"#types/react-redux": "7.1.24",
"#types/react-toastify": "4.1.0",
"#typescript-eslint/eslint-plugin": "5.0.0",
"#typescript-eslint/parser": "5.0.0",
"autoprefixer": "^10.4.7",
"eslint": "8.1.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-next": "12.2.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.14",
"prettier": "^2.4.1",
"prisma": "^4.1.0",
"tailwindcss": "^3.1.6",
"typescript": "4.3.5",
"vercel": "^27.2.0"
}
}
Then in a component, I'm just doing what I'd usually do
import React from "react";
import type { NextPage } from "next";
import { faTimes } from "#fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "#fortawesome/react-fontawesome";
const Home: NextPage = () => {
return (
<FontAwesomeIcon icon={faTimes} color="#fff" size="1x" />
);
};
export default Home;
The icon renders fine, it's the classes applied to the SVG, those closes don't seem to exist
like fa-1x which would usually apply font-size: 1em; to the element, is not being applied in my app.
I'm not sure if there is something specific I'm missing here?
You need to import the FontAwesome css styles in pages/_app.js
import { config } from '#fortawesome/fontawesome-svg-core'
import '#fortawesome/fontawesome-svg-core/styles.css'
config.autoAddCss = false
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
See https://fontawesome.com/v5/docs/web/use-with/react#getting-font-awesome-css-to-work for more info

You may need an appropriate loader to handle this file type. | import History from '../../utils/History';

Am new to reactjs, and am working on a project built on "architectui-react-pro" ui.
The project is working good on my m1 macbook, but not working on my freelancers machines (Windows). I tried to load it on another intel based macbook and am getting this error.
Module parse failed: Unexpected token (11:9)
You may need an appropriate loader to handle this file type.
| import History from '../../utils/History';
| var Login = lazy(function () {
> return import("../../Pages/Login");
| });
|
Following is my package.json file:
"name": "architectui-react-pro",
"version": "1.6.1",
"private": true,
"description": "Financial Assistance - MHB",
"author": "MatrixSoftwares.com",
"homepage": "",
"repository": {
"type": "git",
"url": "git+https://github.com/dpackdev/architectui-react-pro"
},
"dependencies": {
"#fortawesome/fontawesome-free": "^5.15.3",
"#fortawesome/fontawesome-svg-core": "^1.2.35",
"#fortawesome/free-brands-svg-icons": "^5.15.3",
"#fortawesome/free-solid-svg-icons": "^5.15.3",
"#fortawesome/react-fontawesome": "^0.1.14",
"#material-ui/core": "^4.11.4",
"#progress/kendo-react-pdf": "^4.7.0",
"#types/googlemaps": "^3.43.3",
"#types/markerclustererplus": "^2.1.33",
"#wojtekmaj/react-datetimerange-picker": "^2.3.0",
"animate-sass": "^0.8.2",
"apexcharts": "^3.27.1",
"aphrodite": "^2.4.0",
"availity-reactstrap-validation": "^2.7.1",
"axios": "^0.21.1",
"bootstrap": "^4.6.0",
"chart.js": "^2.9.4",
"chartist": "^0.10.1",
"chroma-js": "^2.1.2",
"ckeditor4": "^4.16.1",
"ckeditor4-react": "^1.4.2",
"classnames": "^2.3.1",
"date-arithmetic": "^3.1.0",
"date-fns": "^1.30.1",
"dom-to-pdf": "^0.2.2",
"dropzone": "^5.9.2",
"fibers": "^4.0.2",
"globalize": "^1.4.2",
"google-map-react": "^1.1.5",
"hamburgers": "^0.8.1",
"html2canvas": "^1.0.0-rc.7",
"install": "^0.13.0",
"jquery": "^3.6.0",
"js-base64": "^3.7.2",
"js-md5": "^0.7.3",
"jspdf": "^2.3.1",
"jw-react-pagination": "^1.1.0",
"loaders.css": "^0.1.2",
"m-react-splitters": "^1.2.0",
"moment": "^2.24.0",
"namor": "^1.1.2",
"node-sass": "^4.13.0",
"number-to-words": "^1.2.4",
"pe7-icon": "^1.0.4",
"radium": "^0.26.0",
"rc-slider": "^8.7.1",
"rc-tabs": "^9.6.7",
"rc-tree": "^2.1.4",
"react": "^16.14.0",
"react-animations": "^1.0.0",
"react-anime": "^3.0.3",
"react-apexcharts": "^1.3.9",
"react-app-polyfill": "^1.0.4",
"react-big-calendar": "^0.20.4",
"react-bootstrap-sweetalert": "^4.4.1",
"react-bootstrap-table-next": "^3.2.0",
"react-bootstrap-table2-filter": "^1.2.0",
"react-bootstrap-typeahead": "^3.4.7",
"react-burgers": "^1.3.0",
"react-chartist": "^0.13.3",
"react-chartjs-2": "^2.11.2",
"react-circle": "^1.1.1",
"react-color": "^2.19.3",
"react-compound-slider": "^2.4.0",
"react-cookie": "^4.0.3",
"react-copy-to-clipboard": "^5.0.3",
"react-countup": "^4.2.2",
"react-cropper": "^1.3.0",
"react-datepicker": "^2.9.6",
"react-dates": "^20.3.0",
"react-dnd": "^7.7.0",
"react-dnd-html5-backend": "^7.7.0",
"react-dom": "^16.14.0",
"react-dropzone": "^10.1.9",
"react-flag-icon-css": "^1.0.25",
"react-flagkit": "^1.0.2",
"react-icons": "^3.8.0",
"react-image-crop": "^8.6.12",
"react-input-mask": "^2.0.4",
"react-js-pagination": "^3.0.2",
"react-ladda": "^6.0.0",
"react-liquid-gauge": "^1.2.4",
"react-loader": "^2.4.7",
"react-loader-advanced": "^1.7.1",
"react-loaders": "^3.0.1",
"react-loading-overlay": "^1.0.1",
"react-map-gl": "^5.3.16",
"react-metismenu": "^1.4.0",
"react-motion-drawer": "^3.1.0",
"react-nouislider": "^2.0.1",
"react-numeric-input": "^2.2.3",
"react-on-screen": "^2.1.1",
"react-pagify": "^2.4.0",
"react-paginate": "^6.3.0",
"react-pdf": "^5.3.0",
"react-perfect-scrollbar": "^1.5.3",
"react-popper": "^1.3.11",
"react-rating": "^1.7.2",
"react-redux": "^7.2.4",
"react-redux-form": "^1.16.14",
"react-resize-detector": "^4.2.1",
"react-responsive-tabs": "^3.3.0",
"react-router-dom": "^5.1.0",
"react-scripts": "3.0.0",
"react-scroll": "^1.8.2",
"react-select": "^2.4.4",
"react-simple-maps": "^0.12.1",
"react-sizeme": "^2.6.7",
"react-slick": "^0.26.1",
"react-sortable-tree": "^2.6.2",
"react-sortable-tree-theme-file-explorer": "^2.0.0",
"react-sparklines": "^1.7.0",
"react-sticky-el": "^1.0.20",
"react-stickynode": "^2.1.1",
"react-svg-gauge": "^1.0.10",
"react-sweet-progress": "^1.1.2",
"react-switch": "^4.1.0",
"react-syntax-highlighter": "^10.3.5",
"react-table": "^7.7.0",
"react-textarea-autosize": "^7.1.0",
"react-to-pdf": "0.0.14",
"react-toastify": "^5.4.0",
"react-transition-group": "^1.2.1",
"react-validation": "^3.0.7",
"react-vertical-timeline-component": "^2.5.0",
"react-visibility-sensor": "^5.1.1",
"react-widgets": "^4.6.1",
"react-widgets-globalize": "^5.0.23",
"react-widgets-moment": "^4.0.30",
"react-widgets-simple-number": "^4.1.26",
"reactour": "^1.18.4",
"reactstrap": "^8.9.0",
"recharts": "^1.8.5",
"redux": "^4.1.0",
"redux-form": "^8.3.7",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"rodal": "^1.6.3",
"sass": "^1.35.1",
"slick-carousel": "^1.8.1",
"styled-components": "^4.4.0",
"sweetalert": "2.1.2",
"sweetalert-react": "^0.4.11",
"sweetalert2": "^11.4.0",
"typescript": "^3.9.10",
"validator": "^12.1.0"
},
"scripts": {
"start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
"build": "SKIP_PREFLIGHT_CHECK=true react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"webpack": "^4.28.4"
}
}
And here is the code from "/src/Layout/AppMain/index.js"
import { Router, Route, Switch, Redirect, useLocation } from 'react-router-dom';
import React, { Suspense, lazy, Fragment, useEffect } from "react";
import Loader from "react-loaders";
import { ToastContainer } from "react-toastify";
import PrivateRoutes from '../../utils/PrivateRoute';
import History from '../../utils/History';
const Login = lazy(() => import("../../Pages/Login"));
const AppMain = () => {
const location = useLocation()
if(location.pathname === '/')
{
History.replace('/applicant/analytics')
return <Redirect to="/applicant/analytics"/>
}
const suspenseFallback = (
<div className="loader-container">
<div className="loader-container-inner">
<div className="text-center">
<Loader type="ball-pulse"/>
</div>
<h6 className="mt-3">
Please wait while we load all the Applications examples
<small>Because this is a demonstration we load at once all the Applications examples. This wouldn't happen in a real live app!</small>
</h6>
</div>
</div>
)
return (
<Fragment>
<Suspense fallback={suspenseFallback}>
<Router history={History}>
<Switch>
<Route path="/applicant/login" component={Login} exact/>
<Route path="/" component={PrivateRoutes} />
</Switch>
</Router>
</Suspense>
<ToastContainer/>
</Fragment>
)
};
export default AppMain;
Please help me with getting the project up and running. Thanks, Mustafa.

Unexpected token: File was processed with these loaders: ./node_modules/source-map-loader/dist/cjs.js

I've created a simple project using create-react-app . Then I added another react project named dashboard (using npm pack and install in target project). Everything was ok until I imoported one component of dashboard project(AdminLayout from Admin.js) to my index.js file(entry point), Now when I try to run project I see this error:
SyntaxError: E:\crud-users-react\node_modules\light-bootstrap-dashboard-react\src\layouts\Admin.js: Support for the experimental syntax 'jsx' isn't currently enabled (40:11):
So I convert Admin.js to Admin.jsx and now I see this error:
ERROR in ./node_modules/light-bootstrap-dashboard-react/src/layouts/Admin.jsx 40:10
Module parse failed: Unexpected token (40:10)
File was processed with these loaders:
./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders
It seems my porject doesn't support jsx format!
Here is my index.js
import AdminLayout from "../node_modules/light-bootstrap-dashboard-react/src/layouts/Admin.jsx";
ReactDOM.render(
<BrowserRouter>
<Routes>
<Route path="/admin" element={<AdminLayout/>} />
<Route path="/" element={<Navigate to="/admin/dashboard"/>}/>
</Routes>
</BrowserRouter>,
document.getElementById("root")
);
Here is Admin.jsx
function Admin() {
const [image, setImage] = React.useState(sidebarImage);
const [color, setColor] = React.useState("black");
const [hasImage, setHasImage] = React.useState(true);
const location = useLocation();
const mainPanel = React.useRef(null);
const getRoutes = (routes) => {
return routes.map((prop, key) => {
if (prop.layout === "/admin") {
return (
<Route
path={prop.layout + prop.path}
render={(props) => <prop.component {...props} />}
key={key}
/>
);
} else {
return null;
}
});
};
React.useEffect(() => {
document.documentElement.scrollTop = 0;
document.scrollingElement.scrollTop = 0;
mainPanel.current.scrollTop = 0;
if (
window.innerWidth < 993 &&
document.documentElement.className.indexOf("nav-open") !== -1
) {
document.documentElement.classList.toggle("nav-open");
var element = document.getElementById("bodyClick");
element.parentNode.removeChild(element);
}
}, [location]);
return (
<>
<div className="wrapper">
<Sidebar color={color} image={hasImage ? image : ""} routes={routes} />
<div className="main-panel" ref={mainPanel}>
<AdminNavbar />
<div className="content">
<Switch>{getRoutes(routes)}</Switch>
</div>
<Footer />
</div>
</div>
<FixedPlugin
hasImage={hasImage}
setHasImage={() => setHasImage(!hasImage)}
color={color}
setColor={(color) => setColor(color)}
image={image}
setImage={(image) => setImage(image)}
/>
</>
);
}
package.json:
{
"name": "crud-users-react",
"version": "0.1.0",
"private": true,
"dependencies": {
"#coreui/coreui": "^4.1.0",
"#coreui/react": "^4.1.2",
"#emotion/react": "^11.7.1",
"#emotion/styled": "^11.6.0",
"#fontsource/roboto": "^4.5.1",
"#fortawesome/fontawesome-free": "^5.15.4",
"#material-ui/core": "^4.12.3",
"#material-ui/lab": "^4.0.0-alpha.60",
"#mui/icons-material": "^5.4.2",
"#mui/material": "^5.4.2",
"#mui/styled-engine": "^5.4.2",
"#testing-library/jest-dom": "^5.16.1",
"#testing-library/react": "^12.1.2",
"#testing-library/user-event": "^13.5.0",
"axios": "^0.24.0",
"bootstrap": "^5.1.3",
"chart.js": "^3.7.1",
"classnames": "^2.3.1",
"date-fns": "^2.28.0",
"font-awesome": "^4.7.0",
"jquery": "^3.6.0",
"light-bootstrap-dashboard-react": "^2.0.0",
"next": "^12.0.10",
"nuka-carousel": "^4.8.4",
"popper": "^1.0.1",
"react": "^17.0.2",
"react-chartjs-2": "^4.0.1",
"react-dom": "^17.0.2",
"react-paginate": "^8.1.0",
"react-redux": "^7.2.6",
"react-responsive-carousel": "^3.2.22",
"react-router-dom": "^6.2.1",
"react-scripts": "5.0.0",
"react-simple-image-slider": "^2.3.0",
"react-slider": "^1.3.1",
"redux": "^4.1.2",
"redux-thunk": "^2.4.1",
"source-map-loader": "^3.0.1",
"typescript": "^4.5.5",
"web-vitals": "^2.1.2",
"webpack": "^5.69.1",
"yup": "^0.32.11"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"#babel/core": "^7.17.5",
"#babel/preset-env": "^7.16.11",
"#babel/preset-react": "^7.16.7",
"babel-loader": "^8.2.3",
"gh-pages": "^3.2.3",
"sass": "^1.49.7"
}
}
I've searched these errors many times and most of the answers say I should install babel and create .babelrc file in the src folder and add the code below so here is my .babelrc:
{
"presets": ["#babel/preset-react"]
}
But It didn't work for me yet. So I found another solution in stackoverflow: adding babel.config.json in the src folder and add the code below :
{
"presets": ["#babel/preset-env", "#babel/preset-react"]
}
But I still see the same error! On the other hand I've used create-react-app approach, so I didn't have wabpack.config.js
help me please!

how to fix Datetime picker with masked input gives blank screen in safari?

In redux-form i want to use datetime picker with manual date entry enabled. I have used maskediinput for proper format. It is working fine with all the browsers for normal page.
When clicking on the input it gives blank screen in modal specific for safari. I can't find what is the issue with safari-modal-datepicker-maskedinput !
renderDateTimePicker = ({ input: { onChange, value }, showTime, id, meta, isRequired, readOnly,inputReadOnly }) => {
return (<div> <DateTimePicker
inputProps={{
component: props => <MaskedInput {...props} readOnly={readOnly || inputReadOnly} type="text"
mask={[ /\d/, /\d/, /\d/, /\d/,".",/\d/, /\d/, ".", /\d/, /\d/ ]} />
}}
onChange={onChange}
format="YYYY.MM.DD"
time={showTime}
id={id}
name="completion_date"
className="date_click"
placeholder={isRequired === true ? id + " *" : id}
value={!value ? null : new Date(value)}
/>{this.renderError(meta)}
</div>
);
}
Here is my package.json file :
{
"name": "reduxapi",
"version": "0.1.0",
"private": true,
"dependencies": {
"#devexpress/dx-grid-core": "^1.10.1",
"#devexpress/dx-react-core": "^1.10.1",
"#devexpress/dx-react-grid": "^1.10.1",
"#devexpress/dx-react-grid-material-ui": "^1.10.1",
"#material-ui/core": "^3.9.2",
"#material-ui/icons": "^3.0.2",
"#types/bootstrap.v3.datetimepicker": "^4.17.46",
"ag-grid": "^18.1.2",
"ag-grid-community": "^20.0.0",
"ag-grid-react": "^20.0.0",
"axios": "^0.18.0",
"bootstrap": "^3.4.0",
"bootstrap-datepicker": "^1.8.0",
"cryptr": "^4.0.2",
"datatables.net": "^1.10.19",
"eslint-config-react-app": "^4.0.1",
"faker": "^4.1.0",
"font-awesome": "^4.7.0",
"jquery": "^1.11.2",
"jspdf": "^1.5.3",
"jspdf-autotable": "^3.1.1",
"jwt-simple": "^0.5.5",
"moment": "^2.24.0",
"prop-types": "^15.6.2",
"query-string": "^6.2.0",
"react": "^16.7.0",
"react-autocomplete": "^1.8.1",
"react-autocomplete-input": "^1.0.10",
"react-autosuggest": "^9.4.3",
"react-awesome-modal": "^2.0.5",
"react-bootstrap": "^1.0.0-beta.5",
"react-confirm-alert": "^2.4.1",
"react-csv": "^1.1.1",
"react-data-grid": "^5.0.5",
"react-data-grid-addons": "^5.0.5",
"react-datepicker": "^2.1.0",
"react-dom": "^16.7.0",
"react-encrypt": "^1.0.1",
"react-grid-layout": "^0.16.6",
"react-helmet": "^5.2.1",
"react-moment": "^0.8.4",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.3",
"react-select": "^2.4.1",
"react-text-mask": "^5.4.3",
"react-to-print-advanced": "^2.1.2",
"react-widgets": "^4.4.10",
"react-widgets-moment": "^4.0.27",
"react-widgets-moment-localizer": "^1.0.2",
"redux": "^4.0.1",
"redux-form": "^8.1.0",
"redux-multilanguage": "^0.1.2",
"redux-thunk": "^2.3.0",
"select2": "^4.0.6-rc.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}

Resources