fix view form issues
This commit is contained in:
parent
7fde7c7fc6
commit
51fbbf86d1
|
@ -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"]
|
||||
}
|
||||
|
|
3
App.jsx
3
App.jsx
|
@ -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 />
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
module.exports = {
|
||||
getSourceExts: () => ['jsx', 'js'],
|
||||
resolver: {
|
||||
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 ."
|
||||
},
|
||||
"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",
|
||||
|
|
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 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
3
tools-start.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
react-native run-android
|
||||
react-native-debugger &
|
||||
scrcpy &
|
Loading…
Reference in a new issue