fix view form issues
This commit is contained in:
parent
7fde7c7fc6
commit
51fbbf86d1
|
@ -1,8 +1,5 @@
|
||||||
module.exports = {
|
{
|
||||||
root: true,
|
"root": true,
|
||||||
extends: '@react-native-community',
|
"extends": "@react-native-community",
|
||||||
plugins: [
|
"plugins": ["react", "react-native", "@react-native-community"]
|
||||||
react,
|
}
|
||||||
react-native
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
3
App.jsx
3
App.jsx
|
@ -3,9 +3,6 @@ import {Provider} from 'react-redux';
|
||||||
import StartScreen from './src/components/add-anklan-model';
|
import StartScreen from './src/components/add-anklan-model';
|
||||||
import store from './src/store';
|
import store from './src/store';
|
||||||
const App = props => {
|
const App = props => {
|
||||||
useEffect(() => {
|
|
||||||
alert("heeey")
|
|
||||||
})
|
|
||||||
return (
|
return (
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<StartScreen />
|
<StartScreen />
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
getSourceExts: () => ['jsx', 'js'],
|
|
||||||
resolver: {
|
resolver: {
|
||||||
sourceExts: ['jsx', 'js'],
|
sourceExts: ['jsx', 'js'],
|
||||||
},
|
},
|
||||||
|
|
9463
package-lock.json
generated
9463
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -10,9 +10,10 @@
|
||||||
"lint": "eslint ."
|
"lint": "eslint ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"babel-preset-react-native": "^4.0.1",
|
||||||
"native-base": "^2.13.8",
|
"native-base": "^2.13.8",
|
||||||
"react": "16.13.0",
|
"react": "16.13.0",
|
||||||
"react-native": "0.61.5",
|
"react-native": "^0.61.5",
|
||||||
"react-native-ankidroid": "^0.4.0",
|
"react-native-ankidroid": "^0.4.0",
|
||||||
"react-native-material-textfield": "^0.16.1",
|
"react-native-material-textfield": "^0.16.1",
|
||||||
"react-redux": "^7.2.0",
|
"react-redux": "^7.2.0",
|
||||||
|
@ -35,4 +36,4 @@
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "react-native"
|
"preset": "react-native"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
REACT_DEBUGGER="rndebugger-open --open --port 8081" yarn start
|
REACT_DEBUGGER="rndebugger-open --open --port 8081" yarn start
|
||||||
|
|
0
src/actions/api/dictionary.js
Normal file
0
src/actions/api/dictionary.js
Normal file
0
src/actions/api/word-sound.js
Normal file
0
src/actions/api/word-sound.js
Normal file
0
src/actions/api/yandex-dictionary.js
Normal file
0
src/actions/api/yandex-dictionary.js
Normal file
|
@ -7,9 +7,13 @@ import DeckPicker from './view/deck-picker';
|
||||||
import AddWordForm from './anki-form';
|
import AddWordForm from './anki-form';
|
||||||
import AnkiTemplate from './view/add-main-template';
|
import AnkiTemplate from './view/add-main-template';
|
||||||
import {Grid, Row} from 'native-base';
|
import {Grid, Row} from 'native-base';
|
||||||
import {checkAnkiLanModelForExisting} from '../actions/anki-get-actions';
|
import {checkAnkiLanModelForExisting, getDeckList, getModelList} from '../actions/anki-get-actions';
|
||||||
|
|
||||||
const StartScreen = props => {
|
const StartScreen = props => {
|
||||||
|
useEffect(() => {
|
||||||
|
props.getDeckList();
|
||||||
|
props.getModelList();
|
||||||
|
}, [])
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
props.checkAnkiLanModelForExisting(props.modelName, props.modelList);
|
props.checkAnkiLanModelForExisting(props.modelName, props.modelList);
|
||||||
});
|
});
|
||||||
|
@ -38,4 +42,6 @@ export default connect(
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
checkAnkiLanModelForExisting,
|
checkAnkiLanModelForExisting,
|
||||||
|
getDeckList,
|
||||||
|
getModelList
|
||||||
})(StartScreen);
|
})(StartScreen);
|
||||||
|
|
3
tools-start.sh
Executable file
3
tools-start.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
react-native run-android
|
||||||
|
react-native-debugger &
|
||||||
|
scrcpy &
|
Loading…
Reference in a new issue