How to do parallel testing with react native?

Hi,
I am new to appium, I am using appium for my react native app, using wd driver and jest for testing
I want to run my test cases on multiple android devices through a single server.

for (let i = 0; i < devices; i++) {
let driver = wd.promiseChainRemote("localhost", PORT);
await driver.init(Device_config[i]);
Drivers.set(Device_config[i].udid, driver);
await driver.sleep(50000);

}
the devices array contains all the devices on which I want to run the test with desired capabilities.
initializing the driver for each device separately is not the proper method I think.
can any one plz help me and provide me better solution.

You should take a look at Selenium Grid:

https://appiumpro.com/editions/54-using-appium-with-selenium-grid