mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Refactor tests to use minimum viable test factories (#681)
* Make minimum viable RemoteComment * Minimum vialbe RemoteIdentification * Minimum viable remote project, place, and messages * Create minimum viable records for all remote factories * Remove factories for local device data * Minimum viable local taxon, comment, id * Minimum viable for local observation photo (photo has no primary key) * Minimum viable LocalUser * Minimum viable record for LocalObservation
This commit is contained in:
committed by
GitHub
parent
d58415dd27
commit
9c6106f5d0
@@ -95,9 +95,9 @@ Run `npm run e2e:build:android && npm run e2e:test:android` to build the .apk fo
|
||||
1. Run `node src/i18n/i18ncli.js build` to build the JSON files i18next needs to access text in the app
|
||||
1. In a commponent, use the `useTranslation` hook to reference your new string, e.g.
|
||||
```jsx
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useTranslation } from "sharedHooks";
|
||||
const MyComponent = ( ) => {
|
||||
const { t } = useTranslation();
|
||||
const { t } = useTranslation( );
|
||||
return (
|
||||
<View>
|
||||
<Text>{ t( "ABOUT-PROJECTS" ) }</Text>
|
||||
|
||||
Reference in New Issue
Block a user