fix view form issues

This commit is contained in:
horhik 2020-03-13 13:01:25 -04:00
parent 7fde7c7fc6
commit 51fbbf86d1
12 changed files with 826 additions and 9549 deletions

View file

@ -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
]
};

View file

@ -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 />

View file

@ -6,7 +6,6 @@
*/ */
module.exports = { module.exports = {
getSourceExts: () => ['jsx', 'js'],
resolver: { resolver: {
sourceExts: ['jsx', 'js'], sourceExts: ['jsx', 'js'],
}, },

9463
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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"
} }
} }

View file

@ -1 +1 @@
REACT_DEBUGGER="rndebugger-open --open --port 8081" yarn start REACT_DEBUGGER="rndebugger-open --open --port 8081" yarn start

View file

View file

View file

View 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
View file

@ -0,0 +1,3 @@
react-native run-android
react-native-debugger &
scrcpy &

877
yarn.lock

File diff suppressed because it is too large Load diff