update App.js, Navbar.js and src/screens/Home/index.js

master
Reza_ashrafi 2 years ago
parent 5ef4fd15d5
commit 2611d03510
  1. 13
      App.js
  2. 1
      src/components/Navbar.js
  3. 10
      src/screens/Home/index.js

@ -8,6 +8,8 @@ import { Provider } from "react-redux";
import { store, persistor } from "./src/redux/store"; import { store, persistor } from "./src/redux/store";
import React from "react"; import React from "react";
import { PersistGate } from "redux-persist/integration/react"; import { PersistGate } from "redux-persist/integration/react";
import { copilot } from "react-native-copilot";
const App = () => { const App = () => {
const [appIsReady, setAppIsReady] = React.useState(false); const [appIsReady, setAppIsReady] = React.useState(false);
@ -60,6 +62,11 @@ const App = () => {
); );
}; };
const styles = StyleSheet.create({}); export default copilot({
labels: {
export default App; previous: "قبلی",
next: "بعدی",
skip: "رد کردن",
finish: "پایان",
},
})(App);

@ -81,6 +81,7 @@ const Navbar = ({
}, },
[theme] [theme]
); );
return ( return (
<View <View
style={[ style={[

@ -145,13 +145,5 @@ const mapDispatchToProps = {
setFirstLogin: publicApi.setFirstLogin, setFirstLogin: publicApi.setFirstLogin,
}; };
const component = copilot({
labels: {
previous: "قبلی",
next: "بعدی",
skip: "رد کردن",
finish: "پایان",
},
})(Home);
export default connect(mapStateToProps, mapDispatchToProps)(component); export default connect(mapStateToProps, mapDispatchToProps)(Home);

Loading…
Cancel
Save