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,
extends: '@react-native-community',
plugins: [
react,
react-native
]
};
{
"root": true,
"extends": "@react-native-community",
"plugins": ["react", "react-native", "@react-native-community"]
}

View file

@ -3,9 +3,6 @@ import {Provider} from 'react-redux';
import StartScreen from './src/components/add-anklan-model';
import store from './src/store';
const App = props => {
useEffect(() => {
alert("heeey")
})
return (
<Provider store={store}>
<StartScreen />

View file

@ -6,7 +6,6 @@
*/
module.exports = {
getSourceExts: () => ['jsx', 'js'],
resolver: {
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 ."
},
"dependencies": {
"babel-preset-react-native": "^4.0.1",
"native-base": "^2.13.8",
"react": "16.13.0",
"react-native": "0.61.5",
"react-native": "^0.61.5",
"react-native-ankidroid": "^0.4.0",
"react-native-material-textfield": "^0.16.1",
"react-redux": "^7.2.0",

View file

View file

View file

View file

@ -7,9 +7,13 @@ import DeckPicker from './view/deck-picker';
import AddWordForm from './anki-form';
import AnkiTemplate from './view/add-main-template';
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 => {
useEffect(() => {
props.getDeckList();
props.getModelList();
}, [])
useEffect(() => {
props.checkAnkiLanModelForExisting(props.modelName, props.modelList);
});
@ -38,4 +42,6 @@ export default connect(
}),
{
checkAnkiLanModelForExisting,
getDeckList,
getModelList
})(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